Provide eject() on both GMount and GVolume and utility functions to guess
[platform/upstream/glib.git] / gio / ChangeLog
1 2007-12-14  David Zeuthen  <davidz@redhat.com>
2
3         * Makefile.am:
4         * gio.symbols:
5         * gmount.c: (g_mount_get_uuid), (g_mount_can_eject),
6         (g_mount_eject), (g_mount_eject_finish):
7         * gmount.h:
8         * gunionvolumemonitor.c: (g_union_volume_monitor_finalize),
9         (get_volume_for_uuid), (get_mount_for_uuid),
10         (g_union_volume_monitor_class_init),
11         (get_default_native_type_with_exclude), (get_default_native_type),
12         (get_native_type), (update_native_type),
13         (g_union_volume_monitor_init), (_g_mount_get_for_mount_path):
14         * gunixmount.c: (_g_unix_mount_new), (g_unix_mount_get_uuid),
15         (g_unix_mount_can_eject), (eject_unmount_cb),
16         (eject_unmount_read_error), (eject_unmount_do),
17         (g_unix_mount_unmount), (g_unix_mount_eject),
18         (g_unix_mount_eject_finish), (g_unix_mount_mount_iface_init):
19         * gunixmounts.c: (g_unix_mount_guess_can_eject),
20         (g_unix_mount_point_guess_can_eject):
21         * gunixmounts.h:
22         * gunixvolume.c: (_g_unix_volume_new), (g_unix_volume_get_uuid),
23         (g_unix_volume_can_eject), (g_unix_volume_get_drive),
24         (eject_mount_cb), (eject_mount_read_error), (eject_mount_do),
25         (g_unix_volume_mount), (g_unix_volume_eject),
26         (g_unix_volume_eject_finish), (g_unix_volume_volume_iface_init):
27         * gunixvolumemonitor.c: (get_volume_for_uuid),
28         (get_mount_for_uuid), (g_unix_volume_monitor_class_init),
29         (update_mounts):
30         * gvolume.c: (g_volume_get_uuid), (g_volume_can_eject),
31         (g_volume_eject), (g_volume_eject_finish):
32         * gvolume.h:
33         * gvolumemonitor.c: (g_volume_monitor_get_volume_for_uuid),
34         (g_volume_monitor_get_mount_for_uuid):
35         * gvolumemonitor.h:
36
37         Provide eject() on both GMount and GVolume and utility functions
38         to guess whether a GUnixMountPoint or GUnixMountEntry should be
39         ejected. Introduce the concept of UUID's and wire it into GVolume
40         and GMount and provide API on GVolumeMonitor to find such
41         instances. Also handle the case where an external
42         GNativeVolumeMonitor fails to initialize. Lock around the
43         _g_get_mount_for_mount_path() function such that volume monitor
44         implementations won't have to do locking themselves.
45
46 2007-12-17  Matthias Clasen  <mclasen@redhat.com>
47
48         * gdesktopappinfo.c:
49         * gunixmounts.c:
50         * gfileinfo.c:
51         * gvolumemonitor.c:
52         * gfile.h:
53         * gioscheduler.c:
54         * gvolume.h: Documentation updates
55
56 2007-12-14  Matthias Clasen  <mclasen@redhat.com>
57
58         * gunixmounts.c:
59         * gfile.h: Doc updates
60
61 2007-12-14  Matthias Clasen  <mclasen@redhat.com>
62
63         * gcontenttype.c:
64         * gdesktopappinfo.c: Use hash table iterators.
65
66 2007-12-14  Alexander Larsson  <alexl@redhat.com>
67
68         * Makefile.am:
69         * gfileattribute.[ch]:
70         * gfileattribute-priv.h:
71         Move GFileAttributeValue to a private header, as
72         its sort of ugly.
73         
74         * gfile.[ch]:
75         Make set_attribute take a type + a pointer instead
76         of a GFileAttributeValue.
77         
78         * gfileinfo.[ch]:
79         Fix up for above changes.
80         Add g_file_info_get_attribute_data to get
81         all info in one call, g_file_info_get_attribute_status
82         to get the status and g_file_info_get_attribute_as_string.
83         
84         * gio.symbols:
85         * glocalfile.c:
86         * glocalfileinfo.[ch]:
87         Update for changes
88         
89         * gunixmounts.c:
90         Make _guess_type static.
91
92 2007-12-14  Yevgen Muntyan  <muntyan@tamu.edu>
93
94         * Makefile.am:
95         * inotify/Makefile.am: Fixed build when srcdir != builddir,
96         made mkenums and friends use temporary files to avoid leaving
97         empty generated files on failure (#503470).
98
99 2007-12-14  Alexander Larsson  <alexl@redhat.com>
100
101         * gmountoperation.h:
102         Fix AKS -> ASK typo
103
104 2007-12-14  Alexander Larsson  <alexl@redhat.com>
105
106         * gappinfo.h:
107         * gfile.[ch]:
108         * gfileattribute.[ch]:
109         * gio.symbols:
110         * glocalfile.c:
111         * glocalfileoutputstream.c:
112         * gmountoperation.[ch]:
113         * goutputstream.[ch]:
114         Clean up all flags enums to not have _FLAGS in them
115         Make the names of some of the enums better.
116
117         * glocalfileinfo.c:
118         Fix warning
119         
120 2007-12-14  Michael Natterer  <mitch@imendio.com>
121
122         * gio.symbols: fix g_io_scheduler symbol names.
123
124 2007-12-14  Alexander Larsson  <alexl@redhat.com>
125
126         * Makefile.am:
127         * fam/Makefile.am:
128         * gappinfo.h:
129         * gasyncresult.h:
130         * gbufferedinputstream.h:
131         * gbufferedoutputstream.h:
132         * gcancellable.h:
133         * gcontenttype.h:
134         * gdatainputstream.h:
135         * gdataoutputstream.h:
136         * gdesktopappinfo.h:
137         * gdirectorymonitor.h:
138         * gdrive.h:
139         * gfile.h:
140         * gfileattribute.h:
141         * gfileenumerator.h:
142         * gfileicon.h:
143         * gfileinfo.h:
144         * gfileinputstream.h:
145         * gfilemonitor.h:
146         * gfilenamecompleter.h:
147         * gfileoutputstream.h:
148         * gfilterinputstream.h:
149         * gfilteroutputstream.h:
150         * gicon.h:
151         * ginputstream.h:
152         * gio.h:
153         * gioerror.h:
154         * giomodule.h:
155         * gioscheduler.h:
156         * gloadableicon.h:
157         * gmemoryinputstream.h:
158         * gmemoryoutputstream.h:
159         * gmount.h:
160         * gmountoperation.h:
161         * goutputstream.h:
162         * gseekable.h:
163         * gsimpleasyncresult.h:
164         * gthemedicon.h:
165         * gunixinputstream.h:
166         * gunixmounts.h:
167         * gunixoutputstream.h:
168         * gvfs.h:
169         * gvolume.h:
170         * gvolumemonitor.h:
171         * inotify/Makefile.am:
172         Only allow including <gio/gio.h> from apps
173
174 2007-12-14  Alexander Larsson  <alexl@redhat.com>
175
176         * gioscheduler.[ch]:
177         * gsimpleasyncresult.c:
178         Rename gioscheduler calls so they all use the g_io_schedule_ prefix.
179         Split out the send_to_mainloop call into two versions instead
180         of having the block argument.
181
182 2007-12-13  Alexander Larsson  <alexl@redhat.com>
183
184         * gcancellable.[ch]:
185         * gio.symbols:
186         * gbufferedinputstream.c:
187         * gfileenumerator.c:
188         * gfileinputstream.c:
189         * gfileoutputstream.c:
190         * ginputstream.c:
191         * gioscheduler.c:
192         * goutputstream.c:
193         g_push/pop_current_cancellable ->
194         g_cancellable_push/pop_current
195
196 2007-12-13  Alexander Larsson  <alexl@redhat.com>
197
198         * gfile.[ch]:
199         * gio.symbols:
200         Rename g_mount_for_location to g_file_mount_enclosing_volume.
201
202 2007-12-13  Alexander Larsson  <alexl@redhat.com>
203
204         * gmountoperation.h:
205         G_PASSWORD_FLAGS_ANON_SUPPORTED -> G_PASSWORD_FLAGS_ANONYMOUS_SUPPORTED
206
207 2007-12-12  Alexander Larsson  <alexl@redhat.com>
208
209         * gioscheduler.c:
210         Fix race condition when freeing proxy in
211         g_io_job_send_to_mainloop().
212
213 2007-12-12  Alexander Larsson  <alexl@redhat.com>
214
215         * gfileattribute.c:
216         * gfileinfo.[ch]:
217         * glocalfile.c:
218         * glocalfileinfo.c:
219         Make attribute namespace separator "::" instead of ":".
220         Use - instead of _ as separator in attribute names.
221
222 2007-12-12  Alexander Larsson  <alexl@redhat.com>
223
224         * gbufferedinputstream.h:
225         * gbufferedoutputstream.h:
226         * gdatainputstream.h:
227         * gdataoutputstream.h:
228         * gdirectorymonitor.h:
229         * gfileenumerator.h:
230         * gfileinputstream.h:
231         * gfilemonitor.h:
232         * gfileoutputstream.h:
233         * gfilterinputstream.h:
234         * gfilteroutputstream.h:
235         * ginputstream.h:
236         * glocalfileinputstream.h:
237         * glocalfileoutputstream.h:
238         * gmemoryinputstream.h:
239         * gmemoryoutputstream.h:
240         * gnativevolumemonitor.h:
241         * goutputstream.h:
242         * gunixinputstream.h:
243         * gunixoutputstream.h:
244         * gvfs.h:
245         * gvolumemonitor.h:
246         s/parent/parent_instance/ in GObjects
247
248 2007-12-12  Alexander Larsson  <alexl@redhat.com>
249
250         * gdrive.h:
251         * gmount.h:
252         * gvolume.h:
253         No need for padding for interfaces
254         
255 2007-12-12  Alexander Larsson  <alexl@redhat.com>
256
257         * gappinfo.[ch]:
258         * gasyncresult.c:
259         * gbufferedinputstream.c:
260         * gbufferedoutputstream.c:
261         * gcancellable.c:
262         * gcontenttype.c:
263         * gdatainputstream.[ch]:
264         * gdesktopappinfo.c:
265         * gdirectorymonitor.c:
266         * gfile.[ch]:
267         * gfileattribute.[ch]:
268         * gfileicon.[ch]:
269         * gfileinfo.h:
270         * gfileinputstream.h:
271         * gfilemonitor.[ch]:
272         * gfileoutputstream.[ch]:
273         * gfilterinputstream.h:
274         * gfilteroutputstream.h:
275         * gicon.h:
276         * gioscheduler.c:
277         * gloadableicon.[ch]:
278         * gmemoryinputstream.c:
279         * gmountoperation.c:
280         * gthemedicon.c:
281         Fix up a bunch of details in the docs.
282
283         * glocalfileinfo.c:
284         CR/LF -> LF fixups
285         
286 2007-12-11  David Zeuthen  <davidz@redhat.com>
287
288         Rework how volumes, drives and volume monitoring is
289         done. Previosly the model was
290
291          GDrive <1-1> GVolume
292
293         where a GDrive instance represented a mount point and a GVolume
294         instance represented a mounted file system. This patch changes it
295         the model to
296
297                 GDrive <1-N> GVolume <1-1> GMount
298
299         where GMount now serves the purpose of the old GVolume and the new
300         GVolume serves the purpose of the old GDrive. In addition the new
301         GDrive interface is used to represent a collection of GVolume
302         instances (typically partitions) and also contains utility to query
303         the state of the physical drive the GDrive object represents (such
304         as checking for media, polling the drive, ejecting the media etc.).
305
306         Also implement mounting and unmounting in the Unix volume monitor
307         backend. A subquent patch will introduce GDrive support for ejection
308         of media.
309
310         * Makefile.am:
311         * gdrive.c: (g_drive_is_media_check_automatic),
312         (g_drive_is_media_removable), (g_drive_has_media),
313         (g_drive_can_poll_for_media), (g_drive_eject),
314         (g_drive_eject_finish), (g_drive_poll_for_media),
315         (g_drive_poll_for_media_finish):
316         * gdrive.h:
317         * gfile.c: (g_file_find_enclosing_mount):
318         * gfile.h:
319         * gio.symbols:
320         * glocaldirectorymonitor.c:
321         (g_local_directory_monitor_constructor), (mounts_changed):
322         * glocalfile.c: (get_mount_info),
323         (g_local_file_find_enclosing_mount),
324         (g_local_file_file_iface_init):
325         * gnativevolumemonitor.h:
326         * gunionvolumemonitor.c: (get_mounts), (get_volumes),
327         (get_connected_drives), (g_union_volume_monitor_class_init),
328         (child_volume_added), (child_volume_removed),
329         (child_volume_changed), (child_mount_added), (child_mount_removed),
330         (child_mount_pre_unmount), (child_mount_changed),
331         (child_drive_changed), (g_union_volume_monitor_add_monitor),
332         (g_union_volume_monitor_remove_monitor),
333         (_g_mount_get_for_mount_path):
334         * gunixmounts.c: (g_unix_is_mount_path_system_internal),
335         (guess_system_internal), (_g_get_unix_mounts),
336         (_g_get_unix_mount_points), (g_get_unix_mount_at),
337         (g_unix_mount_free), (g_unix_mount_compare),
338         (g_unix_mount_get_mount_path), (g_unix_mount_get_device_path),
339         (g_unix_mount_get_fs_type), (g_unix_mount_is_readonly),
340         (g_unix_mount_is_system_internal), (g_unix_mount_guess_type),
341         (type_to_icon), (g_unix_mount_guess_name),
342         (g_unix_mount_guess_icon), (g_unix_mount_point_guess_name),
343         (g_unix_mount_point_guess_icon), (_canonicalize_filename),
344         (_resolve_symlink), (_resolve_dev_root):
345         * gunixmounts.h:
346         * gunixvolume.c: (g_unix_volume_finalize), (_g_unix_volume_new),
347         (_g_unix_volume_disconnected), (_g_unix_volume_set_mount),
348         (_g_unix_volume_unset_mount), (g_unix_volume_get_icon),
349         (g_unix_volume_get_name), (g_unix_volume_can_mount),
350         (g_unix_volume_get_drive), (g_unix_volume_get_mount),
351         (_g_unix_volume_has_mount_path), (mount_cb), (mount_read_error),
352         (g_unix_volume_mount), (g_unix_volume_mount_finish),
353         (g_unix_volume_volume_iface_init):
354         * gunixvolume.h:
355         * gunixvolumemonitor.c: (g_unix_volume_monitor_finalize),
356         (get_mounts), (get_volumes), (get_connected_drives),
357         (get_mount_for_mount_path), (g_unix_volume_monitor_class_init),
358         (mountpoints_changed), (mounts_changed),
359         (g_unix_volume_monitor_init),
360         (_g_unix_volume_monitor_lookup_volume_for_mount_path),
361         (find_mount_by_mountpath), (update_volumes), (update_mounts):
362         * gunixvolumemonitor.h:
363         * gvolume.c: (g_volume_get_mount), (g_volume_can_mount),
364         (g_volume_mount), (g_volume_mount_finish):
365         * gvolume.h:
366         * gvolumemonitor.c: (g_volume_monitor_class_init),
367         (g_volume_monitor_get_connected_drives),
368         (g_volume_monitor_get_volumes), (g_volume_monitor_get_mounts):
369         * gvolumemonitor.h:
370
371 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
372
373         * gmountoperation.h (GPasswordFlags): Close the gap
374
375 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
376
377         * Makefile.am: Install gdesktopappinfo.h as unix-specific header.
378         * gio.symbols:
379         * gdesktopappinfo.[hc]: Remove _-prefixes
380
381 2007-12-10  Tor Lillqvist  <tml@novell.com>
382
383         * glocalfile.c: Add some more G_OS_WIN32 conditionals to silence
384         gcc warnings.
385
386 2007-12-10  Alexander Larsson  <alexl@redhat.com>
387
388         * gfile.c (g_file_set_display_name):
389         Don't hardcode '/' (#502727)
390
391 2007-12-09  Hans Breuer  <hans@breuer.org>
392
393         * makefile.msc : follow lib naming convention
394         * glocalfileinfo.c(win32_get_file_user_info) : working implementation
395         for user and group name, tested with ../tests/gio-ls
396
397 2007-12-09  A. Walton  <awalton@svn.gnome.org>
398
399         * gdesktopappinfo.c:
400         * gdrive.c:
401         * gdrive.h:
402         * gfile.c:
403         * gfile.h:
404         * gfileattribute.c:
405         * gfileenumerator.c:
406         * gioerror.c:
407         * gioscheduler.c:
408         * gioscheduler.h:
409         * gloadableicon.c:
410         * gmemoryinputstream.c:
411         * gmemoryoutputstream.c:
412         * goutputstream.h:
413         * gsimpleasyncresult.c:
414         More documentation cleanup and filling in missing information, bringing
415         GIO to 99% symbol coverage.
416
417 2007-12-08  Hans Breuer  <hans@breuer.org>
418
419         [gio compiles and links on win32, not sure how much already works]
420         * glocaldirectorymonitor.c : ifdefed out inotify emulation for win32
421         * glocalfile.c : use HAVE_UNISTD_H; implement file system size info 
422         base on win32 API; prefer g_lstat() over lstat(); instead of 
423         localtime_r() use an all GLib implementation on win32;
424         get_mount_info() still needs a win32 specifc implementation
425         * glocalfileinfo.c : use HAVE_*_H; start of implementation of 
426         win32_get_file_user_info to get owner/group info without uid/gid
427         * glocalfileinputstream.c : include <io.h> on win32
428         * glocalfileoutputstream.c : include <io.h> on win32 and some S_IS*
429         definition, use g_win32_ftruncate() for G_OS_WIN32
430         * gwin32appinfo.c : optionalize a bunch on #ifdef AssocQueryString
431         it is available with mingw/w32api but a mess with the M$ Platform SDKs
432         see: http://mail.gnome.org/archives/gtk-devel-list/2007-December/msg00014.html
433         * makefile.msc : updated
434
435 2007-12-07  Alexander Larsson  <alexl@redhat.com>
436
437         * glocalfileenumerator.c (_g_local_file_enumerator_new):
438         Avoid warning spew if error == NULL
439         
440 2007-12-07  Alexander Larsson  <alexl@redhat.com>
441
442         * gfile.c:
443         Update docs wrt etags
444
445 2007-12-06  Alexander Larsson  <alexl@redhat.com>
446
447         * glocalfileinfo.h:
448         Include sys/types.h for dev_t (#501919)
449
450 2007-12-06  Behdad Esfahbod  <behdad@gnome.org>
451
452         * gio.symbols:
453         * pltcheck.sh:
454         Make abicheck and pltcheck pass.
455
456 2007-12-05  Alexander Larsson  <alexl@redhat.com>
457
458         * Makefile.am:
459         * giomodule-priv.h: Added.
460         * glocaldirectorymonitor.c:
461         * glocalfilemonitor.c:
462         * gunionvolumemonitor.c:
463         * gvfs.c:
464         Actually add the declaration of _g_io_modules_ensure_loaded
465
466 2007-12-05  Alexander Larsson  <alexl@redhat.com>
467
468         * gdatainputstream.c:
469         Fix warnings
470         
471         * gio.symbols:
472         * giomodule.[ch]
473         * glocaldirectorymonitor.c:
474         * glocalfilemonitor.c:
475         * gunionvolumemonitor.c:
476         * gvfs.c:
477         Make g_io_modules_ensure_loaded a private function and
478         don't pass in the dirname. This means we can do magic
479         directory finding in the win32 version.
480         Export the actual load-modules-in-directory code so that
481         gvfs can reuse that.
482
483 2007-12-05  Alexander Larsson  <alexl@redhat.com>
484
485         * gbufferedinputstream.c:
486         * gbufferedoutputstream.c:
487         * gdrive.[ch]:
488         * gfile.[ch]:
489         * gfileenumerator.[ch]:
490         * gfileinputstream.c:
491         * gfileoutputstream.[ch]:
492         * gfilterinputstream.c:
493         * gfilteroutputstream.c:
494         * ginputstream.[ch]:
495         * glocalfile.c:
496         * glocalfileenumerator.c:
497         * glocalfileinputstream.c:
498         * glocalfileoutputstream.c:
499         * gmemoryinputstream.c:
500         * gmemoryoutputstream.c:
501         * goutputstream.[ch]:
502         * gseekable.[ch]:
503         * gunixdrive.c:
504         * gunixinputstream.c:
505         * gunixoutputstream.c:
506         Rename all struct members named:
507         read, write, close, truncate, or mount
508         to foo_fn, as these are reserved names
509         and could be defined as macros in libc.
510         (#501645)
511
512 2007-12-04  Alexander Larsson  <alexl@redhat.com>
513
514         * goutputstream.c:
515         (g_output_stream_close):
516         Only call flush if non-null.
517
518 2007-11-30  Dan Winship  <danw@gnome.org>
519
520         * ginputstream.c (g_input_stream_set_pending): Make this take a
521         GError and return a gboolean, and do the "outstanding operation"
522         check (and the "stream is already closed" check) itself.
523         (g_input_stream_clear_pending): Formerly set_pending(FALSE).
524
525         * goutputstream.c (g_output_stream_set_pending)
526         (g_output_stream_clear_pending): Likewise
527
528         * gbufferedinputstream.c: 
529         * gfileinputstream.c: 
530         * gfileoutputstream.c: Update for that
531
532         * gsimpleasyncresult.c (g_simple_async_report_gerror_in_idle):
533         Like g_simple_async_report_error_in_idle, but takes a GError
534         rather than building one.
535
536 2007-11-30  Dan Winship  <danw@gnome.org>
537
538         * goutputstream.c: Don't cheat and unset the "pending" flag around
539         inner calls. Instead, call the class method directly rather than
540         the wrapper function that checks "pending"
541
542 2007-12-03  Behdad Esfahbod  <behdad@gnome.org>
543
544         * glib/gnulib/Makefile.am: Fix EXTRA_DIST automake warnings. (#501107)
545
546 2007-12-03  Hans Breuer  <hans@breuer.org>
547
548         [start of port to win32/msvc]
549         * gcancellable.c : HAVE_UNIST_H and _pipe()
550         * gcontenttype.c : only include <dirent.h> in the UNIX branch
551         * gdatainputstream.c : pointer arithmetic on void* is a gcc extension
552         * gdummyfile.c glocalfileinputstream.c gsimpleasyncresult.c : use 
553         HAVE_UNIST_H
554         * glocalfileoutputstream.c : use HAVE_UNIST_H and s/ssize_t/gssize/
555         * glocalvfs.c : use HAVE_PWD_H
556         * gio.symbols : ifdef unix specific functions with G_OS_UNIX
557         * makefile.msc : new file (maybe later converted to makefile.msc.in)
558         * Makefile.am : added to EXTRA_DIST
559
560 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
561
562         * gfile.c (g_file_copy): Add a cross-reference to g_file_dup().
563         (#499783)
564
565 2007-12-03  Alexander Larsson  <alexl@redhat.com>
566
567         * glocalfileinfo.c:
568         Handle OSX style xattrs API (#500506)
569
570 2007-12-03  Alexander Larsson  <alexl@redhat.com>
571
572         * gfile.[ch]:
573         * glocalfile.c:
574         Add G_FILE_COPY_NO_FALLBACK_FOR_MOVE flag
575
576 2007-12-02  A. Walton  <awalton@svn.gnome.org>
577
578         * gfile.c:
579         * gfileattribute.c:
580         Documentation accuracy fixes.
581
582 2007-12-01  Behdad Esfahbod  <behdad@gnome.org>
583
584         * gioenumtypes.c.template: Fix typo.
585
586 2007-12-01  Matthias Clasen <mclasen@redhat.com>
587
588         * gioenumtypes.c.template: Make threadsafe get_type() functions.
589
590 2007-12-01  Matthias Clasen <mclasen@redhat.com>
591
592         * gdirectorymonitor.c:
593         * gfilemonitor.c: Add properties
594
595         * gbufferedoutputstream.c: Don't mark buffer-size property 
596         as construct-only.
597
598 2007-12-01  Matthias Clasen <mclasen@redhat.com>
599
600         * gbufferedoutputstream.c: Add auto-grow property.
601
602 2007-11-30  Matthias Clasen <mclasen@redhat.com>
603
604         * *.c: Unify the capitalization of section headings.
605
606 2007-11-30  Matthias Clasen <mclasen@redhat.com>
607
608         * gmountoperation.c: Add properties
609         
610         * gdatainputstream.c: Turn byte-order and newline-type into
611         properties.
612
613 2007-11-30  Matthias Clasen <mclasen@redhat.com>
614
615         * gioenumtypes.[hc].template: Templates for enum registration
616
617         * Makefile.am: Generate gioenumtypes.[hc]
618
619         * gio.h: Include gioenumtypes.h
620         * gappinfo.h:
621         * gfile.h: Add some explicit nicks.
622
623         * gio.symbols: Add new symbols
624
625         * pltcheck.sh: Adjust
626
627 2007-11-30  Matthias Clasen <mclasen@redhat.com>
628
629         * *.c: Explain etags and link to the explanation
630
631 2007-11-29  Matthias Clasen <mclasen@redhat.com>
632
633         * *.c: Explain I/O priority.
634
635         * *.c: More coding style fixes.
636
637 2007-11-29  Matthias Clasen <mclasen@redhat.com>
638
639         * gasyncresult.c: Add another paragraph to the intro,
640         adjust coding style of example.
641
642 2007-11-29  A. Walton <awalton@svn.gnome.org>
643
644         * gappinfo.c:
645           Fixes unknown meaning in GAppLaunchContext docs.
646         * gfile.c:
647           Clarify asynchronous ops.
648         * gfileattribute.c:
649           Fix entity tag docs.
650         * gicon.c:
651         * gthemedicon.c:
652           Provides missing gtk-doc section, fixes API docs slighly.
653         * gsimpleasyncresult.c:
654           Fill in missing info in docs.
655         * gunixinputstream.c:
656         * gunixoutputstream.c:
657           Be more expressive in short description.
658         * gunixvolume.c:
659           Remove gtk-doc stubs for non-public API.
660
661 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
662
663         * *.c: Coding style fixups
664
665 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
666
667         * inotify/inotify-helper.c: Don't export the lock from libgio.
668
669 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
670
671         * Makefile.am:
672         * abicheck.sh: Fix copy-and-paste leftovers 
673
674 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
675
676         * gfile.h: Add G_FILE_COPY_FLAGS_NONE for consistency.
677
678 2007-11-28  Alexander Larsson  <alexl@redhat.com>
679
680         * Makefile.am:
681         * gdriveprivate.h:
682         Removed unnecessary file
683         
684         * gdesktopappinfo.[ch]:
685         * gdummyfile.[ch]:
686         * gfile.c:
687         * glocaldirectorymonitor.[ch]:
688         * glocalfile.[ch]:
689         * glocalfileenumerator.[ch]:
690         * glocalfileinputstream.[ch]:
691         * glocalfilemonitor.[ch]:
692         * glocalfileoutputstream.[ch]:
693         * glocalvfs.[ch]:
694         * gnativevolumemonitor.c:
695         * gpollfilemonitor.[ch]:
696         * gunionvolumemonitor.[ch]:
697         * gunixdrive.[ch]:
698         * gunixvolume.[ch]:
699         * gunixvolumemonitor.[ch]:
700         * gvfs.c:
701         * gvolumeprivate.h:
702         * inotify/ginotifydirectorymonitor.[ch]:
703         * inotify/ginotifyfilemonitor.[ch]:
704         * inotify/inotify-helper.c:
705         Append _ to all internal functions
706         
707         * gio.symbols:
708         Add missing symbols
709         Export symbols needed for modules
710
711 2007-11-28  Alexander Larsson  <alexl@redhat.com>
712
713         * Makefile.am:
714         * abicheck.sh: Added.
715         * makegioalias.pl: Added.
716         * pltcheck.sh: Added.
717         * gio.symbols: Added.
718         * *.c:
719         * inotify/*.c
720         Initial work on adding symbol handling.
721
722         * gvfs.h:
723         Correct ifdef guard name
724
725         * fam/Makefile.am:
726         * inotify/Makefile.am:
727         * xdgmime/Makefile.am:
728         Include toplevel Makefile.decl
729
730 2007-11-27  Matthias Clasen  <mclasen@redhat.com>
731
732         * gcontenttype.c: Move doc comments to the unix section.
733
734         * *.[hc]: More trivial doc corrections.
735
736 2007-11-27  Matthias Clasen  <mclasen@redhat.com>
737
738         * gpollfilemonitor.c:
739         * gunixmounts.c:
740         * gvfs.c:
741         * gfile.c:
742         * gdesktopappinfo.c:
743         * gwin32appinfo.c:
744         * gvolume.c:
745         * glocalvfs.c:
746         * gvolumemonitor.c:
747         * gdatainputstream.c:
748         * gdatainputstream.h:
749         * gdataoutputstream.c:
750         * gdataoutputstream.h:
751         * gfileinfo.h: Doc cleanups
752
753 2007-11-28  Andre Klapper  <a9016009@gmx.de>
754
755         * gdesktopappinfo.c: Fix a typo.
756
757 2007-11-27  Andre Klapper  <a9016009@gmx.de>
758
759         * glocalfileoutputstream.c: Fix a typo.
760
761 2007-11-27  Alexander Larsson  <alexl@redhat.com>
762
763         * gio.h:
764         Don't include removed headers
765
766 2007-11-27  Alexander Larsson  <alexl@redhat.com>
767
768         * Makefile.am:
769         * gsocketinputstream.[ch]: Removed.
770         * gsocketoutputstream.[ch]: Removed.
771         * gunixinputstream.[ch]: Added.
772         * gunixoutputstream.[ch]: Added.
773         Renamed GSocket*Stream to GUnix*Stream and made
774         it unix-only, since its not really only for sockets
775         and it only works on unix (but is highly useful there).
776
777 2007-11-27  Andrew Walton  <awalton@svn.gnome.org>
778         * gappinfo.c:
779         * gappinfo.h:
780         * gasynchelper.c:
781         * gasyncresult.c:
782         * gasyncresult.h:
783         * gbufferedinputstream.c:
784         * gbufferedinputstream.h:
785         * gbufferedoutputstream.c:
786         * gbufferedoutputstream.h:
787         * gcancellable.c: 
788         * gcancellable.h:
789         * gcontenttype.c:
790         * gdatainputstream.c:
791         * gdatainputstream.h:
792         * gdataoutputstream.c:
793         * gdataoutputstream.h:
794         * gdirectorymonitor.c:
795         * gdirectorymonitor.h:
796         * gdrive.c: 
797         * gdrive.h:
798         * gfile.c:
799         * gfile.h:
800         * gfileattribute.c:
801         * gfileattribute.h:
802         * gfileenumerator.c:
803         * gfileenumerator.h:
804         * gfileicon.c:
805         * gfileicon.h:
806         * gfileinfo.c:
807         * gfileinfo.h:
808         * gfileinputstream.c:
809         * gfileinputstream.h:
810         * gfilemonitor.c:
811         * gfilemonitor.h:
812         * gfilenamecompleter.c:
813         * gfilenamecompleter.h:
814         * gfileoutputstream.c:
815         * gfileoutputstream.h:
816         * gfilterinputstream.c:
817         * gfilterinputstream.h:
818         * gfilteroutputstream.c:
819         * gfilteroutputstream.h:
820         * gicon.c:
821         * gicon.h:
822         * ginputstream.c:
823         * ginputstream.h:
824         * gioerror.c:
825         * gioerror.h:
826         * giomodule.c:
827         * giomodule.h:
828         * gioscheduler.c:
829         * gioscheduler.h:
830         * gloadableicon.c:
831         * gloadableicon.h:
832         * glocalfileoutputstream.c:
833         * gmemoryinputstream.c:
834         * gmemoryinputstream.h:
835         * gmemoryoutputstream.c:
836         * gmemoryoutputstream.h:
837         * gmountoperation.c: 
838         * gmountoperation.h:
839         * goutputstream.c:
840         * goutputstream.h:
841         * gpollfilemonitor.c:
842         * gseekable.c:
843         * gseekable.h:
844         * gsimpleasyncresult.c:
845         * gsimpleasyncresult.h:
846         * gsocketinputstream.c:
847         * gsocketinputstream.h:
848         * gsocketoutputstream.c:
849         * gsocketoutputstream.h:
850         * gthemedicon.c:
851         * gthemedicon.h:
852         * gunixdrive.c:
853         * gunixmounts.c: 
854         * gunixmounts.h:
855         * gunixvolume.c:
856         * gunixvolumemonitor.c:
857         * gurifuncs.c:
858         * gurifuncs.h:
859         * gvfs.c:
860         * gvfs.h:
861         * gvolume.c:
862         * gvolume.h:
863         * gvolumemonitor.c: 
864         * gvolumemonitor.h:
865         Bumps documentation to 93% symbol coverage, touching most 
866         of the public files. Fixes broken function documentation prototypes. 
867         Fixes GCancellable inaccuracies. Removes unnecessary incomplete 
868         gtk-doc headers in private files.
869
870 2007-11-27  JĂ¼rg Billeter  <j@bitron.ch>
871
872         * gbufferedinputstream.c: (g_buffered_input_stream_peek_buffer),
873         (g_buffered_input_stream_read_byte):
874         * gbufferedinputstream.h:
875         New functions for efficient access to buffer and simple single byte
876         reads.
877
878         * gdatainputstream.c: (scan_for_newline), (scan_for_chars),
879         (g_data_input_stream_read_until):
880         * gdatainputstream.h:
881         Use peek_buffer to avoid memcpy in scan_for_newline, implement
882         read_until with multiple stop chars.
883
884 2007-11-27  Alexander Larsson  <alexl@redhat.com>
885
886         * Makefile.am:
887         * fam/Makefile.am:
888         * inotify/Makefile.am:
889         Use the user-specified giomoduledir
890
891 2007-11-27  Alexander Larsson  <alexl@redhat.com>
892
893         * Makefile.am
894         * gio.h:
895         Add catch-all gio.h header
896         Don't install gdummyfile.h
897
898 2007-11-26  Alexander Larsson  <alexl@redhat.com>
899
900         * Makefile.am (gioinclude_HEADERS):
901         Remove trailing whitespace
902         
903 2007-11-26  Alexander Larsson  <alexl@redhat.com>
904
905         Merge gio-standalone into glib
906
907 2007-11-25  Christian Kellner  <gicmo@gnome.org>
908
909         * gio/goutputstream.c:
910         Fix small mistake in the docs.
911
912 2007-11-21  Christian Persch  <chpe@gnome.org>
913
914         * gio/glocalfile.c: (g_local_file_trash):
915         Convert filenames to UTF-8 for GError.
916         Use g_mkdir_with_parent to create the Trash dir, and use mode 0700
917         as per xdg base dir spec.
918
919 2007-11-21  Christian Persch  <chpe@gnome.org>
920
921         * gio/gdesktopappinfo.c:
922         Use that g_key_file_to_data cannot fail.
923         Some misc cleanups.
924         Use stock defines for the key file group and key names.
925         Use bitfields.
926
927 2007-11-21  Alexander Larsson  <alexl@redhat.com>
928
929         * gio/gfile.c:
930         (copy_stream_with_progress):
931         Make sure we do a final progress callback with
932         the full total size.
933
934 2007-11-21  Alexander Larsson  <alexl@redhat.com>
935
936         * gio/gfile.[ch]:
937         Export g_file_copy_attributes
938         Remove padding as its not needed for interfaces
939
940 2007-11-20  Alexander Larsson  <alexl@redhat.com>
941
942         * gio/gfile.c:
943         * gio/gioerror.h:
944         * gio/glocalfile.c:
945         Add G_IO_ERROR_WOULD_MERGE for
946         copy/move dir on dir with overwrite.
947
948 2007-11-20  Alexander Larsson  <alexl@redhat.com>
949
950         * gio/gfileinfo.h:
951         * gio/glocalfileinfo.c:
952         Add COPY_NAME (this is an optional
953         non-modified utf8 version of the name) that
954         can roundtrip.
955
956 2007-11-20  Alexander Larsson  <alexl@redhat.com>
957
958         * gio/glocalfileenumerator.c:
959         Report errors as GIOError, not GFileError
960
961 2007-11-16  Alexander Larsson  <alexl@redhat.com>
962
963         * gio/glocalfileoutputstream.c:
964         * gio/gwin32appinfo.c:
965         Fix typos in strings.
966         Patch from Luca Ferretti <elle.uca@libero.it>
967
968 2007-11-15  Alexander Larsson  <alexl@redhat.com>
969
970         * configure.ac:
971         Post release version bump
972
973 === gio-standalone 0.1.2 ===
974
975 2007-11-15  Alexander Larsson  <alexl@redhat.com>
976
977         * docs/reference/gio/Makefile.am:
978         Fix up distcheck by removing weird
979         non-needed stuff
980
981         * NEWS:
982         Update for release
983
984 2007-11-14  Alexander Larsson  <alexl@redhat.com>
985
986         * gio/gdesktopappinfo.c:
987         * gio/glocaldirectorymonitor.c:
988         * gio/glocalfile.c:
989         * gio/glocalfileinfo.c:
990         * gio/inotify/inotify-sub.c:
991         * programs/gio-cat.c:
992         * programs/gio-copy.c:
993         * programs/gio-info.c:
994         * programs/gio-ls.c:
995         * programs/gio-monitor-dir.c:
996         * programs/gio-monitor-file.c:
997         * programs/gio-mount.c:
998         * programs/gio-move.c:
999         * programs/gio-rm.c:
1000         * programs/gio-save.c:
1001         * programs/gio-trash.c:
1002         Leak fixes from Kjartan Maraas
1003
1004 2007-11-14  Alexander Larsson  <alexl@redhat.com>
1005
1006         * gio/fam/fam-helper.c:
1007         * gio/gdrive.[ch]:
1008         * gio/glocalfileinfo.c:
1009         * gio/gunixdrive.c:
1010         * gio/gvfs.c:
1011         * gio/gvolume.[ch]:
1012         * gio/inotify/inotify-diag.c:
1013         * gio/inotify/inotify-kernel.c:
1014         Various code cleanups from Kjartan Maraas
1015
1016 2007-11-14  Alexander Larsson  <alexl@redhat.com>
1017
1018         * gio/gioscheduler.c:
1019         (init_scheduler):
1020         Set up threadpool so that we cache 2 unused
1021         idle threads for at 15 secs. This means we
1022         will reuse thread-local data (like dbus connections)
1023         for them.
1024
1025 2007-11-14  Alexander Larsson  <alexl@redhat.com>
1026
1027         * gio/fam/fam-helper.c:
1028         * gio/fam/gfamdirectorymonitor.c:
1029         * gio/fam/gfamfilemonitor.c:
1030         * gio/gappinfo.c:
1031         * gio/gcontenttype.c:
1032         * gio/gdatainputstream.c:
1033         * gio/gdataoutputstream.c:
1034         * gio/gdummyfile.c:
1035         * gio/gfile.c:
1036         * gio/gfile.h:
1037         * gio/gfileattribute.h:
1038         * gio/gfileenumerator.c:
1039         * gio/gfileinfo.c:
1040         * gio/ginputstream.c:
1041         * gio/gioerror.h:
1042         * gio/glocalfile.c:
1043         * gio/glocalfileinfo.c:
1044         * gio/goutputstream.c:
1045         * gio/gpollfilemonitor.c:
1046         * gio/gsimpleasyncresult.c:
1047         * gio/gunixmounts.c:
1048         * gio/gunixmounts.h:
1049         * gio/inotify/ginotifydirectorymonitor.c:
1050         * gio/inotify/ginotifyfilemonitor.c:
1051         * gio/inotify/inotify-diag.c:
1052         * gio/inotify/inotify-kernel.c:
1053         * gio/inotify/inotify-path.c:
1054         * gio/test-gio.c:
1055         * gio/test-streams.c:
1056         * programs/gio-info.c:
1057         * programs/gio-monitor-dir.c:
1058         * programs/gio-monitor-file.c:
1059         Various code cleanups from Kjartan Maraas
1060
1061 2007-11-13  Alexander Larsson  <alexl@redhat.com>
1062
1063         * gio/gdummyfile.c:
1064         Handle the uri-scheme calls for dummy files
1065
1066 2007-11-13  Marko Anastasov  <marko@marko.anastasov.name>
1067
1068         * gio/gio/gfileinfo.[ch]: Use a different parameter name instead of
1069         'namespace' for in g_file_attribute_matcher_enumerate_namespace()
1070         to avoid clash with the C++ keyword.
1071
1072 2007-11-13  Marko Anastasov  <marko@marko.anastasov.name>
1073
1074         * gio/glocalfileinfo.c: Build fix, added missing semicolon
1075         to an ifdef'ed call to getpwuid() in lookup_uid_data().
1076
1077 2007-11-11  Sebastian Dröge  <slomo@circular-chaos.org>
1078
1079         * gio/glocaldirectorymonitor.c:
1080         * gio/glocalfilemonitor.c:
1081         * gio/gunionvolumemonitor.c:
1082         Don't use g_once_init_*() for initializations that could fail and
1083         could leave the initialization variable set to 0 but use GOnce.
1084         This prevents a deadlock on the second call when trying to create
1085         a monitor and no monitor type is available. Thanks to Sven Herzberg
1086         for reporting.
1087
1088 2007-11-11  Sven Herzberg  <sven@imendio.com>
1089
1090         * gio/glocalfile.c: guard the #include <sys/statfs.h> by the correct
1091         #ifdef (make it work on MacOS X again)
1092
1093 2007-11-09  Andrew Walton  <awalton@svn.gnome.org>
1094         * Changelog:
1095         Fixes Changelog for last two commits (sorry guys).
1096
1097 2007-11-07  Andrew Walton  <awalton@svn.gnome.org>
1098         * gio/gappinfo.c:
1099         * gio/gbufferedinputstream.c:
1100         * gio/gdatainputstream.c:
1101         * gio/gfile.c:
1102         * gio/gfileoutputstream.c:
1103         * gio/gfilterinputstream.c:
1104         * gio/glocalfileinputstream.c:
1105         * gio/gurifuncs.c:
1106         * gio/gvfs.c:
1107         More consistency fixes in g*stream.c files. 
1108         Significant clean of gfile's documentation, filling in of 
1109         asynchronous operations documentation.
1110
1111 2007-11-07  Andrew Walton  <awalton@svn.gnome.org>
1112         * gio/gappinfo.c:
1113         * gio/gasyncresult.c:
1114         * gio/gbufferedinputstream.c:
1115         * gio/gbufferedoutputstream.c:
1116         * gio/gcancellable.c:
1117         * gio/gcontenttype.c:
1118         * gio/gdatainputstream.c:
1119         * gio/gdataoutputstream.c:
1120         * gio/gdesktopappinfo.c:
1121         * gio/gdrive.c:
1122         * gio/gfile.c:
1123         * gio/gfileattribute.c:
1124         * gio/gio/gfileenumerator.c:
1125         * gio/gfileinfo.c:
1126         * gio/gfileinputstream.c:
1127         * gio/gfilemonitor.c:
1128         * gio/gfileoutputstream.c:
1129         * gio/ginputstream.c:
1130         * gio/giomodule.c:
1131         * gio/gioscheduler.c:
1132         * gio/gloadableicon.c:
1133         * gio/glocalfileoutputstream.c:
1134         * gio/gmemoryoutputstream.c:
1135         * gio/gmountoperation.c:
1136         * gio/goutputstream.c:
1137         * gio/gseekable.c:
1138         * gio/gsimpleasyncresult.c:
1139         * gio/gunionvolumemonitor.c:
1140         * gio/gunixmounts.c:
1141         * gio/gunixvolume.c:
1142         * gio/gurifuncs.c:
1143         * gio/gvfs.c:
1144         * gio/gvolume.c:
1145         * gio/gvolumemonitor.c:
1146         Updated documentation stubs, working towards consistency and 
1147         completeness.
1148
1149 2007-11-07  Sebastian Dröge  <slomo@circular-chaos.org>
1150
1151         * gio/gmemoryoutputstream.c:
1152         * gio/gmemoryoutputstream.h:
1153         Change g_memory_output_stream_set_free_on_close() to
1154         g_memory_output_stream_set_free_data() as this makes more sense and
1155         is more consistent with GMemoryInputStream.
1156
1157 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1158
1159         * gio/gfile.c:
1160         Fix some docs
1161         
1162         * gio/glocalvfs.c:
1163         * gio/gvfs.[ch]:
1164         Change how we find the default vfs so that
1165         we can handle a gvfs failing to init
1166
1167 2007-11-07  Sebastian Dröge  <slomo@circular-chaos.org>
1168
1169         * gio/gbufferedoutputstream.c:
1170         * gio/gdatainputstream.c:
1171         * gio/gdataoutputstream.c:
1172         * gio/gfileinputstream.c:
1173         * gio/gfileoutputstream.c:
1174         * gio/gfilterinputstream.c:
1175         * gio/gfilteroutputstream.c:
1176         * gio/ginputstream.c:
1177         * gio/gmemoryinputstream.c:
1178         * gio/gmemoryoutputstream.c:
1179         * gio/goutputstream.c:
1180         * gio/gsimpleasyncresult.c:
1181         * gio/gsocketinputstream.c:
1182         * gio/gsocketoutputstream.c:
1183         Add guards to the remaining public functions, add a TODO for
1184         an unimplemented function and remove some useless guards.
1185
1186 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1187
1188         * configure.ac:
1189         Autoconf checks for the various types of
1190         getpwuid_r and getgrgid_r
1191         
1192         * gio/glocalfileinfo.c:
1193         Use the autoconf checks from above
1194
1195 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1196
1197         * gio/glocalfile.c:
1198         (g_local_file_query_filesystem_info):
1199         Some fixes for the statvfs case
1200         
1201 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1202
1203         * gio/glocalfile.c:
1204         (g_local_file_query_filesystem_info):
1205         Pick the "best" of statfs / statvfs for the system
1206         if both are availible.
1207
1208 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1209
1210         Solaris fixes from Halton.Huo@Sun.COM:
1211         
1212         * gio/gdrive.c:
1213         * gio/gfile.c:
1214         * gio/gvolume.c:
1215         Don't return void
1216         
1217         * gio/glocalfileinfo.c:
1218         Fix for solaris definition of getpwuid_r
1219         
1220         * gio/test-streams.c:
1221         Use G_GNUC_PRETTY_FUNCTION
1222
1223 2007-11-07  Alexander Larsson  <alexl@redhat.com>
1224
1225         * gio/gdesktopappinfo.c:
1226         (update_default_list):
1227         Remove double semicolon.
1228         Patch from Jens Granseuer
1229
1230 2007-11-06  Sebastian Dröge  <slomo@circular-chaos.org>
1231
1232         * docs/reference/gio/gio-sections.txt:
1233         * gio/gbufferedinputstream.c:
1234         * gio/gbufferedinputstream.h:
1235         * gio/gdatainputstream.c:
1236         * gio/gfileenumerator.c:
1237         * gio/gioscheduler.c:
1238         * gio/gunionvolumemonitor.c:
1239         * gio/gvfs.c:
1240         * programs/gio-save.c:
1241         Fix typo: availible -> available. Unfortuntely this breaks API
1242         and ABI as g_buffered_input_stream_get_available() was renamed.
1243         
1244         * gio/gunixmounts.c:
1245         * gio/gbufferedinputstream.c:
1246         Add guards for public functions.
1247
1248 2007-11-06  Ross Burton  <ross@openedhand.com>
1249
1250         * docs/reference/gio/Makefile.am:
1251         Fix invalid += usage which automake 1.10 doesn't like.
1252
1253 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1254
1255         * gio/gappinfo.c:
1256         (g_app_launch_context_class_init):
1257         Fix warning
1258
1259         Patch from Ross Burton 
1260         
1261 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1262
1263         * configure.ac:
1264         Post release version bump
1265
1266 === gio-standalone 0.1.1 ===
1267
1268 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1269
1270         * configure.ac:
1271         Bump version to 0.1.1
1272         
1273         * gio/gsimpleasyncresult.c:
1274         (g_simple_async_result_set_from_error):
1275         Remove bogus g_return_if_fail
1276
1277 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1278
1279         * configure.ac:
1280         The name is gio-standalone
1281         
1282         * gio/Makefile.am:
1283         Add top src/builddir to includedir
1284
1285 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1286
1287         * docs/reference/gio/gio-sections.txt:
1288         * gio/gappinfo.c:
1289         * gio/gbufferedinputstream.c:
1290         * gio/gbufferedoutputstream.c:
1291         * gio/gcancellable.c:
1292         * gio/gdatainputstream.h:
1293         * gio/gdataoutputstream.c:
1294         * gio/gdataoutputstream.h:
1295         * gio/gdirectorymonitor.c:
1296         * gio/gfile.c:
1297         * gio/gfileattribute.c:
1298         * gio/gfileattribute.h:
1299         * gio/gfileenumerator.c:
1300         * gio/gfileenumerator.h:
1301         * gio/gfileinfo.c:
1302         * gio/gfileinfo.h:
1303         * gio/gfileinputstream.h:
1304         * gio/gfilemonitor.c:
1305         * gio/gfileoutputstream.h:
1306         * gio/glocalfilemonitor.h:
1307         * gio/glocalfileoutputstream.h:
1308         * gio/gmemoryinputstream.c:
1309         * gio/gmemoryoutputstream.c:
1310         * gio/gmountoperation.c:
1311         * gio/goutputstream.c:
1312         * gio/goutputstream.h:
1313         * gio/gseekable.h:
1314         * gio/gsimpleasyncresult.c:
1315         * gio/gunixmounts.c:
1316         * gio/gunixmounts.h:
1317         * gio/gurifuncs.h:
1318         * gio/inotify/inotify-helper.c:
1319         Fix gtk-doc warnings
1320
1321         Patch from Ross Burton 
1322         
1323 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1324
1325         * gio/gfilenamecompleter.c:
1326         (g_filename_completer_get_completions):
1327         fix warning
1328         
1329         * gio/gunixvolume.c:
1330         Remove unused function
1331
1332         Patches from Ross Burton 
1333
1334 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1335
1336         * gio/gdrive.h:
1337         * gio/gseekable.h:
1338         * gio/gvolume.h:
1339         Padding not needed for interfaces
1340
1341 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1342
1343         * gio/gfilemonitor.c:
1344         Remove debug spew
1345
1346         * gio/Makefile.am:
1347         Make giotypes.h an internal file
1348         
1349         * gio/gappinfo.h:
1350         * gio/gbufferedinputstream.h:
1351         * gio/gbufferedoutputstream.h:
1352         * gio/gcancellable.h:
1353         * gio/gdatainputstream.h:
1354         * gio/gdataoutputstream.h:
1355         * gio/gdirectorymonitor.c:
1356         * gio/gdirectorymonitor.h:
1357         * gio/gdrive.c:
1358         * gio/gdrive.h:
1359         * gio/gfile.c:
1360         * gio/gfile.h:
1361         * gio/gfileattribute.h:
1362         * gio/gfileenumerator.h:
1363         * gio/gfileicon.c:
1364         * gio/gfileicon.h:
1365         * gio/gfileinfo.c:
1366         * gio/gfileinfo.h:
1367         * gio/gfilemonitor.c:
1368         * gio/gfilemonitor.h:
1369         * gio/gfilenamecompleter.c:
1370         * gio/gfilenamecompleter.h:
1371         * gio/gfilterinputstream.h:
1372         * gio/gfilteroutputstream.h:
1373         * gio/ginputstream.h:
1374         * gio/gmemoryinputstream.h:
1375         * gio/gmemoryoutputstream.h:
1376         * gio/gmountoperation.c:
1377         * gio/gmountoperation.h:
1378         * gio/gnativevolumemonitor.c:
1379         * gio/goutputstream.h:
1380         * gio/gseekable.c:
1381         * gio/gseekable.h:
1382         * gio/gsimpleasyncresult.c:
1383         * gio/gsimpleasyncresult.h:
1384         * gio/gsocketinputstream.h:
1385         * gio/gsocketoutputstream.h:
1386         * gio/gthemedicon.c:
1387         * gio/gthemedicon.h:
1388         * gio/gvfs.h:
1389         * gio/gvolume.c:
1390         * gio/gvolume.h:
1391         * gio/gvolumemonitor.c:
1392         * gio/gvolumemonitor.h:
1393         Add padding in classes where it seems useful
1394         Don't include giotypes.h from public headers
1395         Move in Class definitions into c file where possible
1396         
1397         * gio/glocalfile.c:
1398         Fix warnings
1399
1400 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1401
1402         * docs/reference/gio/gio-docs.xml:
1403         Better structure for API docs
1404
1405 2007-11-06  Sebastian Dröge  <slomo@circular-chaos.org>
1406
1407         * gio/gfileicon.c:
1408         * gio/gloadableicon.c:
1409         * gio/gsimpleasyncresult.c:
1410         * gio/gthemedicon.c:
1411         Add some more guards to public functions. Only files missing are now
1412         g*stream*.c.
1413
1414 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1415
1416         * docs/reference/gio/gio-docs.xml:
1417         Remove old files, add missing ones
1418
1419 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1420
1421         * docs/reference/gio/gio-sections.txt:
1422         Restructure
1423         Add missing stuff
1424         Hide implementation classes
1425         
1426         * gio/gdriveprivate.h:
1427         * gio/gvolumeprivate.h:
1428         Remove non-existing function declarations
1429
1430 2007-11-06  Sebastian Dröge  <slomo@circular-chaos.org>
1431
1432         * gio/gappinfo.c:
1433         Fix compilation warnings and add guards to the new functions.
1434         
1435         * gio/gasyncresult.c:
1436         * gio/gdummyfile.c:
1437         Add guards to the public functions.
1438         
1439         * gio/gdummyfile.c:
1440         Implement get_path().
1441
1442 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1443
1444         * gio/gfilenamecompleter.c:
1445         Make g_filename_completer_get_completions
1446         return char ** instead of GList for
1447         typesafety.
1448         
1449         * docs/reference/gio/gio-docs.xml:
1450         * docs/reference/gio/gio-sections.txt:
1451         * gio/gappinfo.c:
1452         * gio/gasyncresult.c:
1453         * gio/gbufferedinputstream.c:
1454         * gio/gbufferedoutputstream.c:
1455         * gio/gcancellable.c:
1456         * gio/gcontenttype.c:
1457         * gio/gdatainputstream.c:
1458         * gio/gdataoutputstream.c:
1459         * gio/gdesktopappinfo.c:
1460         * gio/gdirectorymonitor.c:
1461         * gio/gdrive.c:
1462         * gio/gdummyfile.c:
1463         * gio/gfile.c:
1464         * gio/gfileattribute.c:
1465         * gio/gfileenumerator.c:
1466         * gio/gfileicon.c:
1467         * gio/gfileinfo.c:
1468         * gio/gfileinputstream.c:
1469         * gio/gfilemonitor.c:
1470         * gio/gfilenamecompleter.c:
1471         * gio/gfilenamecompleter.h:
1472         * gio/gfileoutputstream.c:
1473         * gio/gfilterinputstream.c:
1474         * gio/gicon.c:
1475         * gio/ginputstream.c:
1476         * gio/giomodule.c:
1477         * gio/gioscheduler.c:
1478         * gio/gloadableicon.c:
1479         * gio/glocaldirectorymonitor.c:
1480         * gio/glocalfile.c:
1481         * gio/glocalfileinputstream.c:
1482         * gio/glocalfilemonitor.c:
1483         * gio/glocalfileoutputstream.c:
1484         * gio/glocalvfs.c:
1485         * gio/gmemoryinputstream.c:
1486         * gio/gmemoryoutputstream.c:
1487         * gio/gmountoperation.c:
1488         * gio/goutputstream.c:
1489         * gio/gpollfilemonitor.c:
1490         * gio/gseekable.c:
1491         * gio/gsimpleasyncresult.c:
1492         * gio/gsocketinputstream.c:
1493         * gio/gsocketoutputstream.c:
1494         * gio/gthemedicon.c:
1495         * gio/gunionvolumemonitor.c:
1496         * gio/gunixdrive.c:
1497         * gio/gunixmounts.c:
1498         * gio/gunixvolume.c:
1499         * gio/gunixvolumemonitor.c:
1500         * gio/gurifuncs.c:
1501         * gio/gvfs.c:
1502         * gio/gvolume.c:
1503         * gio/gvolumemonitor.c:
1504         * gio/gwin32appinfo.c:
1505         Add (mostly stub) doc strings to public functions.
1506         Patch from Andrew Walton (awalton@gmail.com)
1507
1508 2007-11-06  Alexander Larsson  <alexl@redhat.com>
1509
1510         * gio/gappinfo.[ch]:
1511         Added GAppLaunchContext object and pass that to launch.
1512         This allows simple implementation of both
1513         launch-on-screen and startup notification via a gtk+
1514         subclass of GAppLaunchContext
1515         
1516         * gio/gdesktopappinfo.c:
1517         Implement GAppLaunchContext API
1518         
1519         * gio/gwin32appinfo.c:
1520         Update to new APIs
1521
1522 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1523
1524         * gio/gmountoperation.c:
1525         Add some guards to GMountOperation's public functions.
1526
1527 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1528
1529
1530         * gio/gappinfo.c:
1531         * gio/gcancellable.c:
1532         * gio/gdirectorymonitor.c:
1533         * gio/gdrive.c:
1534         * gio/gfileenumerator.c:
1535         * gio/gfilemonitor.c:,
1536         * gio/gfilenamecompleter.c:
1537         * gio/gicon.c:
1538         * gio/giomodule.c:
1539         * gio/gioscheduler.c:
1540         * gio/gseekable.c:
1541         * gio/gurifuncs.c:
1542         * gio/gvolume.c:
1543         * gio/gvolumemonitor.c:
1544         Add even more guards to various public functions.
1545
1546 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1547
1548         * gio/gappinfo.c:
1549         Add guards to the public functions of GAppInfo.
1550
1551 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1552
1553         * gio/gcontenttype.c:
1554         Add some more guards for public functions.
1555
1556 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1557
1558         * gio/fam/fam-module.c:
1559         * gio/fam/gfamdirectorymonitor.c:
1560         * gio/fam/gfamdirectorymonitor.h:
1561         * gio/fam/gfamfilemonitor.c:
1562         * gio/fam/gfamfilemonitor.h:
1563         * gio/inotify/ginotifydirectorymonitor.c:
1564         * gio/inotify/ginotifydirectorymonitor.h:
1565         * gio/inotify/ginotifyfilemonitor.c:
1566         * gio/inotify/ginotifyfilemonitor.h:
1567         Add proper copyright information and remove an unused variable
1568         in the GInotifyFileMonitor constructor.
1569
1570         * gio/gcancellable.c:
1571         Add a guard for a public function and an assertion to prevent
1572         an undefined program state.
1573
1574 2007-11-05  Sebastian Dröge  <slomo@circular-chaos.org>
1575
1576         * gio/gfileattribute.c:
1577         Don't run into an assertion if the given attribute value is NULL
1578         in g_file_attribute_value_get_*() but instead return a fallback
1579         value that makes sense in most situations. Passing them a attribute
1580         value with the wrong type will still run into an assertion.
1581
1582 2007-11-02  Sebastian Dröge  <slomo@circular-chaos.org>
1583
1584         * gio/gfileattribute.c:
1585         * gio/gfileinfo.c:
1586         Add even more guards to the public functions. Also fix the refcounting
1587         of GFileAttributeInfoList and GFileAttributeMatcher to be atomic and
1588         let g_file_info_list_attributes() filter the attributes by namespace
1589         instead of simply ignoring the namespace parameter.
1590
1591 2007-11-03  Sven Herzberg  <sven@imendio.com>
1592
1593         * gio/gdesktopappinfo.c: don't use environ. Use the glib API for that.
1594         (This makes gio work on MacOS X again)
1595
1596 2007-11-02  Sebastian Dröge  <slomo@circular-chaos.org>
1597
1598         * Makefile.am:
1599         Build the gio subdirectory before the docs. Otherwise the build will
1600         fail.
1601
1602         * gio/gvfs.c: (g_vfs_get_name), (g_vfs_get_priority),
1603         (g_vfs_get_file_for_path), (g_vfs_get_file_for_uri),
1604         (g_vfs_get_supported_uri_schemes), (g_vfs_parse_name):
1605         Add guards to the public functions.
1606
1607 2007-11-02  Sebastian Dröge  <slomo@circular-chaos.org>
1608
1609         * gio/gfileattribute.c: (g_file_attribute_value_as_string):
1610         Cast parameter to g_type_name_from_instance() to a GTypeInstance *
1611         to prevent a compiler warning.
1612
1613         * gio/glocalfile.c: (get_mount_info), (find_topdir_for):
1614         Set the G_FILE_ATTRIBUTE_FS_READONLY as boolean, not as string and
1615         return something in the non-void function find_topdir_for().
1616
1617 2007-11-01  Christian Kellner  <gicmo@gnome.org>,  Ryan Lortie  <desrt@desrt.ca>
1618
1619         * configure.ac:
1620         * Makefile.am:
1621         * docs/:
1622         Gtkdocify!
1623
1624 2007-11-01  Ryan Lortie  <desrt@desrt.ca>
1625
1626         * gappinfo.c (g_app_info_launch, g_app_info_launch_uris):
1627         * gappinfo.h (g_app_info_launch, g_app_info_launch_uris):
1628         * gwin32appinfo.c (g_win32_app_info_launch):
1629         * gdesktopappinfo.c (expand_macro, equal_up_to_equals,
1630         envp_for_startup_id, g_desktop_app_info_launch,
1631         g_desktop_app_info_launch_uris):
1632
1633         Give an opaque 'startup_id' string instead of 'envp'.
1634         Support empty file lists for launching new windows.
1635         Fix infinite recursion bug when launching URIs.
1636
1637 2007-11-01  Sebastian Dröge  <slomo@circular-chaos.org>
1638
1639         * gio/gfile.c:
1640         Add guard to the new g_file_get_uri_scheme() function.
1641
1642 2007-11-01  Sebastian Dröge  <slomo@circular-chaos.org>
1643
1644         * gio/gfile.c:
1645         Convert a g_return_val_if_fail() to setting the GError instead as
1646         otherwise applications have to verify the parameter before otherwise
1647         and the parameter might come directly from the user.
1648
1649 2007-11-01  Sebastian Dröge  <slomo@circular-chaos.org>
1650
1651         * gio/inotify/ginotify*.[ch]:
1652         Add missing copyright information.
1653
1654 2007-11-01  Sebastian Dröge  <slomo@circular-chaos.org>
1655
1656         * gio/gfile.c:
1657         Add guards in the beginning of public functions to check for valid
1658         parameters and fix a bug in copy_stream_with_progress() that could've
1659         caused writing less bytes than reading.
1660         * gio/glocalfileinfo.c:
1661         Check for a NULL parameter and set the GError accordingly then.
1662         * gio/goutputstream.c:
1663         Fix the same bug as in gfile.c that could've caused writing less bytes
1664         than reading in g_output_stream_real_splice().
1665
1666 2007-11-01  Sebastien Bacher  <seb128@ubuntu.com>
1667
1668         * gio/Makefile.am:
1669         Use the correct gvolumeprivate.h naming
1670
1671 2007-11-01  Christian Kellner  <gicmo@gnome.org>
1672
1673         * gio/Makefile.am:
1674         Remove leftover "$(daemon_sources)" entry.
1675
1676 2007-11-01  Christian Kellner  <gicmo@gnome.org>
1677
1678         * gio/fam/*.[ch]:
1679         * gio/*.[ch]:
1680         * programs/*.[ch]:
1681         Add copyright information to source files.
1682
1683 2007-11-01  Alexander Larsson  <alexl@redhat.com>
1684
1685         * gio/gfile.[ch]:
1686         * gio/glocalfile.c:
1687         Add g_file_get_uri_scheme
1688
1689 2007-11-01  Alexander Larsson  <alexl@redhat.com>
1690
1691         * gio/gappinfo.h:
1692         * gio/gdesktopappinfo.c:
1693         * gio/gwin32appinfo.c:
1694         Add g_app_info_get_default_for_uri_scheme.
1695
1696 2007-11-01  Alexander Larsson  <alexl@redhat.com>
1697
1698         * gio/Makefile.am:
1699         Correct filename for gdriveprivate.h
1700
1701 2007-10-31  Alexander Larsson  <alexl@redhat.com>
1702
1703         * gio/gfileinfo.h:
1704         Rename id:value to id:file
1705         Add id:fs
1706         
1707         * gio/glocalfileinfo.c:
1708         Implement id:fs
1709
1710 2007-10-31  Alexander Larsson  <alexl@redhat.com>
1711
1712         * gio/gunixvolume.c:
1713         * gio/gvolume.[ch]:
1714         Remove g_volume_get_platform_id, as thats not
1715         needed with the simpler union volume monitor
1716
1717 2007-10-31  Alexander Larsson  <alexl@redhat.com>
1718
1719         * gio/Makefile.am:
1720         * gio/guniondrive.[ch]: Removed.
1721         * gio/gunionvolume.[ch]: Removed.
1722         Remove GUnionDrive/Volume
1723
1724         * gio/gunionvolumemonitor.c:
1725         Simplify union volume monitor, now we
1726         only have one native volume monitor and
1727         we use the actual volumes/drives from the
1728         child monitors instead of wrapping them
1729
1730         * gio/gnativevolumemonitor.[ch]:
1731         Base class for native volume monitors.
1732         Includes priority and get_volume_for_mountpoint
1733         
1734         * gio/gfile.[ch]:
1735         Add g_file_find_enclosing_volume
1736
1737         * gio/gfileinfo.h:
1738         Remove volume name fs attribute
1739         Add readonly fs attribute
1740         
1741         * gio/glocalfile.c:
1742         Implement readonly attribute
1743         remove volume name attribute
1744         Implement find_enclosing volume
1745         
1746         * gio/gunixmounts.c:
1747         Add a volume for "/".
1748         
1749         * gio/gunixvolume.[ch]:
1750         Set better name for /
1751         
1752         * gio/gunixvolumemonitor.[ch]:
1753         Derive from GNativeVolumeMonitor
1754         Implement get_volume_for_mountpoint
1755         
1756         * gio/gvolume.h:
1757         GVolume typedef moved to gfile.h
1758         
1759         * gio/gvolumeprivate.h:
1760         Add g_volume_get_for_mount_path
1761
1762 2007-10-31  Alexander Larsson  <alexl@redhat.com>
1763
1764         * gio/gunixmounts.[ch]:
1765         Add cache info to unix mount listers
1766         Make getmntent use threadsafe
1767         Add is_system_internal attribute for GUnixMount
1768         
1769         * gio/gunixvolume.c:
1770         (g_unix_volume_new):
1771         Use is_system_internal instead of own code
1772         
1773         * gio/glocaldirectorymonitor.c:
1774         * gio/gunixvolumemonitor.c:
1775         Update to new gunixmounts API
1776         
1777         * gio/glocalfile.c:
1778         Fix warning
1779
1780 2007-10-30  Alexander Larsson  <alexl@redhat.com>
1781
1782         * gio/gfileinfo.h:
1783         Add volume name fsinfo attribute
1784         
1785         * gio/glocalfile.c:
1786         Read volume name info
1787         
1788         * gio/gunionvolumemonitor.c:
1789         Fix infinite loops when finalizing a union volume monitor
1790
1791 2007-10-30  Alexander Larsson  <alexl@redhat.com>
1792
1793         * gio/goutputstream.[ch]:
1794         Add splice() with default implementation
1795         
1796         * gio/gsocketoutputstream.c:
1797         (g_socket_output_stream_write):
1798         Return error on cancellation correctly.
1799         
1800 2007-10-26  Paolo Borelli  <pborelli@katamail.com>
1801
1802         * gio/glocalfile.c (g_local_file_trash):
1803         Do not leak a string.
1804
1805 2007-10-26  Paolo Borelli  <pborelli@katamail.com>
1806
1807         * gio/gfile.c (g_file_load_contents):
1808         Unref the stream after closing it.
1809
1810 2007-10-25  Alexander Larsson  <alexl@redhat.com>
1811
1812         * gio/gioscheduler.h:
1813         Fix include
1814
1815 2007-10-25  Alexander Larsson  <alexl@redhat.com>
1816
1817         * gio/gfile.[ch]:
1818         * gio/glocalfile.c:
1819         Add g_file_has_uri_scheme and implement for local files
1820
1821 2007-10-25  Paolo Borelli  <pborelli@katamail.com>
1822
1823         * gio/gdesktopappinfo.c: do not leak a string.
1824
1825 2007-10-24  Sebastian Dröge  <slomo@circular-chaos.org>
1826
1827         * gio/glocaldirectorymonitor.c: (_compare_monitor_class_by_prio),
1828         (g_local_directory_monitor_new):
1829         * gio/glocalfilemonitor.c: (_compare_monitor_class_by_prio),
1830         (g_local_file_monitor_new):
1831         Only look for the monitor type that should be used the first time
1832         and use g_qsort_with_data() instead of our own bubble sort
1833         implementation.
1834
1835 2007-10-24  Sebastian Dröge  <slomo@circular-chaos.org>
1836
1837         * gio/Makefile.am:
1838         * gio/fam/Makefile.am:
1839         * gio/fam/fam-helper.c: (_fam_sub_startup), (_fam_sub_add):
1840         * gio/fam/fam-helper.h:
1841         * gio/fam/fam-module.c: (g_io_module_load), (g_io_module_unload):
1842         * gio/fam/gfamdirectorymonitor.c:
1843         * gio/fam/gfamdirectorymonitor.h:
1844         * gio/fam/gfamfilemonitor.c: (g_fam_file_monitor_finalize),
1845         * gio/fam/gfamfilemonitor.h:
1846         * gio/glocaldirectorymonitor.c:
1847         * gio/glocaldirectorymonitor.h:
1848         * gio/glocalfilemonitor.c: (g_local_file_monitor_init),
1849         * gio/glocalfilemonitor.h:
1850         * gio/inotify/Makefile.am:
1851         * gio/inotify/ginotifydirectorymonitor.c:
1852         * gio/inotify/ginotifydirectorymonitor.h:
1853         * gio/inotify/ginotifyfilemonitor.c:
1854         * gio/inotify/ginotifyfilemonitor.h:
1855         Implement the FAM and Inotify monitors as
1856         GLocal(Directory|File)Monitor subclasses and put the FAM monitors into
1857         their own GIO module. GLocal(Directory|File)Monitor will use the
1858         monitor with the highest rank that is supported on that machine.
1859
1860 2007-10-23  Sebastian Dröge  <slomo@circular-chaos.org>
1861
1862         * gio/Makefile.am:
1863         Change GIO module dir to $(libdir)/gio/modules and change
1864         the log domain from GVFS to GIO. Also only export symbols starting
1865         with g_ in the resulting library.
1866         * gio/test-streams.c: (main):
1867         Set log handler for the GIO log domain.
1868
1869 2007-10-22  Alexander Larsson  <alexl@redhat.com>
1870
1871         * gio/gfilenamecompleter.[ch]:
1872         Add g_filename_completer_set_dirs_only
1873
1874 2007-10-22  Alexander Larsson  <alexl@redhat.com>
1875
1876         * gio/Makefile.am:
1877         * gio/gurifuncs.[ch]:
1878         Add some simple URI helpers
1879         
1880         * gio/gfilenamecompleter.[ch]:
1881         Added object for filename (parse name actually) completion
1882         
1883         * gio/glocalvfs.c:
1884         Handle ~ in parse names
1885
1886 2007-10-17  Alexander Larsson  <alexl@redhat.com>
1887
1888         * gio/gfileinfo.h:
1889         * gio/glocalfileinfo.c:
1890         Add and implement id:value attribute
1891
1892 2007-10-17  Alexander Larsson  <alexl@redhat.com>
1893
1894         * gio/gdrive.[ch]:
1895         * gio/guniondrive.c:
1896         * gio/gunixdrive.c:
1897         Add and implement g_drive_has_volumes
1898         
1899 2007-10-17  Alexander Larsson  <alexl@redhat.com>
1900
1901         * gio/gfileinfo.h:
1902         * gio/glocalfileinfo.[ch]:
1903         Add unix:is_mountpoint and implement for local files
1904
1905 2007-10-16  Alexander Larsson  <alexl@redhat.com>
1906
1907         * gio/gunionvolumemonitor.c:
1908         (g_union_volume_monitor_init):
1909         Fix up the unix type getting so that it works with gcc
1910         
1911 2007-10-12  Alexander Larsson  <alexl@redhat.com>
1912
1913         * gio/gfileinfo.h:
1914         * gio/glocalfileinfo.c:
1915         Add thumbnail:failed to file info
1916
1917 2007-10-12  Richard Hult  <richard@imendio.com>
1918
1919         * gio/gvfs.c (get_default_vfs): Make the type volatile to avoid
1920         optimizing away the get_type call (happens with some gcc versions,
1921         like the one shipped with OS X 10.4).
1922
1923 2007-10-12  Alexander Larsson  <alexl@redhat.com>
1924
1925         * gio/glocalfileinfo.c:
1926         (_g_local_file_info_set_attribute):
1927         Fix build if not HAVE_XATTR
1928         Patch from Milosz Derezynski <internalerror@gmail.com>
1929
1930 2007-10-11  Sven Herzberg  <herzi@gnome-de.org>
1931
1932         * gio/gunixmounts.c: small build fix (sorry, Alex, you haven't been
1933         around for review, otherwise I would have asked you before
1934         committing)
1935
1936 2007-10-11  Alexander Larsson  <alexl@redhat.com>
1937
1938         * gio/gfileinfo.h:
1939         Add thumbnail:path attribute
1940         
1941         * gio/glocalfileinfo.c:
1942         Implement thumbnail:path for local files
1943
1944 2007-10-11  Alexander Larsson  <alexl@redhat.com>
1945
1946         * gio/glocalfileinfo.c:
1947         (_g_local_file_info_get):
1948         Avoid duplicate icon names
1949
1950 2007-10-11  Alexander Larsson  <alexl@redhat.com>
1951
1952         * gio/gthemedicon.[ch]:
1953         Change g_themed_icon_get_names return type to const
1954
1955 2007-10-10  Alexander Larsson  <alexl@redhat.com>
1956
1957         * gio/glocalfileinfo.c:
1958         Don't reference freed memory
1959
1960 2007-10-10  Alexander Larsson  <alexl@redhat.com>
1961
1962         * gio/gfileattribute.c:
1963         Handle objects
1964         
1965         * gio/glocalfileinfo.c:
1966         Return icon info
1967
1968 2007-10-10  Alexander Larsson  <alexl@redhat.com>
1969
1970         * gio/gfileinfo.c:
1971         Check for NULL icons
1972
1973         * gio/gfileattribute.c:
1974         Don't dup when getting objects (same as for string attributes)
1975
1976         * gio/gicon.c (g_icon_equal):
1977         Safely handle NULLs in equal
1978
1979 2007-10-10  Alexander Larsson  <alexl@redhat.com>
1980
1981         * gio/gfileinfo.h:
1982         Fix c++ compilation issues
1983         Patch from Milosz Derezynski <internalerror@gmail.com>
1984
1985 2007-10-10  Alexander Larsson  <alexl@redhat.com>
1986
1987         * programs/gio-monitor-dir.c:
1988         Don't crash if dir monitor not supported.
1989
1990 2007-10-09  Alexander Larsson  <alexl@redhat.com>
1991
1992         * gio/gioerror.h:
1993         Add missing G_END_DECLS
1994
1995 2007-10-09  Sebastian Dröge  <slomo@circular-chaos.org>
1996
1997         * gio/gfile.c: (g_file_set_display_name),
1998         (g_file_query_settable_attributes),
1999         (g_file_query_writable_namespaces):
2000         Return NULL not FALSE on errors as the return type is a pointer.
2001
2002 2007-10-09  Sebastian Dröge  <slomo@circular-chaos.org>
2003
2004         * gio/glocalfile.c: (g_local_file_monitor_file):
2005         Don't call monitor_file on the default interface vtable (which
2006         is NULL) but simply return NULL. The caller, GFile, will create a
2007         polling monitor if NULL is returned.
2008
2009 2007-10-09  Alexander Larsson  <alexl@redhat.com>
2010
2011         * Makefile.am:
2012         * configure.ac:
2013         * gio-unix-2.0.pc.in:
2014         Add gio-unix-2.0.pc if OS_UNIX
2015         
2016         * gio/Makefile.am:
2017         Install gunixmounts.h into gio-unix-2.0 if OS_UNIX
2018
2019 2007-10-09  Alexander Larsson  <alexl@redhat.com>
2020
2021         * gio/gunixmounts.[ch]:
2022         Make unix mount monitoring API sane.
2023         Now its just a object with mounts_changed
2024         and mountpoints_changed signals.
2025         
2026         * gio/glocaldirectorymonitor.c:
2027         * gio/gunixvolumemonitor.c:
2028         Use new mount monitor api
2029
2030 2007-10-09  Alexander Larsson  <alexl@redhat.com>
2031
2032         * gio/gunixmounts.[ch]:
2033         Move guess type into one call for mounts and one for mountpoints
2034         
2035         * gio/gunixdrive.c:
2036         * gio/gunixvolume.c:
2037         Update
2038
2039 2007-10-09  Alexander Larsson  <alexl@redhat.com>
2040
2041         * gio/gunixmounts.[ch]:
2042         Remove _ prefix in preparation to make this semi-public
2043         Hide implementation of structs
2044         
2045         * gio/glocaldirectorymonitor.c:
2046         * gio/gunixdrive.c:
2047         * gio/gunixvolume.c:
2048         * gio/gunixvolumemonitor.c:
2049         Update for above API changes
2050
2051 2007-10-08  Alexander Larsson  <alexl@redhat.com>
2052
2053         * gio/gfile.c:
2054         Better polling fallback. This also handles the case where we have
2055         a monitor_file implementation, but it fails.
2056
2057 2007-10-08  Alexander Larsson  <alexl@redhat.com>
2058
2059         * gio/gfile.[ch]:
2060         * gio/glocalfile.c:
2061         * gio/gunixmounts.c:
2062         * programs/gio-monitor-dir.c:
2063         * programs/gio-monitor-file.c:
2064         Added cancellable to file monitoring calls.
2065         These are really sync calls and need this.
2066
2067 2007-10-08  Sebastian Dröge  <slomo@circular-chaos.org>
2068
2069         * gio/glocalvfs.c: (g_local_vfs_get_supported_uri_schemes),
2070         (g_local_vfs_class_init):
2071         * gio/gvfs.c: (g_vfs_get_supported_uri_schemes):
2072         * gio/gvfs.h: Add functions to get a list of supported URI schemes.
2073
2074 2007-10-05  Alexander Larsson  <alexl@redhat.com>
2075
2076         * gio/gdirectorymonitorprivate.h: 
2077         * gio/gfilemonitorprivate.h: 
2078         * gio/gdirectorymonitor.h:
2079         * gio/gfilemonitor.h:
2080         Remove *private.h and move to the public API, so that
2081         we can do implementations outside gio (such as in gvfs)
2082         
2083         * gio/gdirectorymonitor.c:
2084         * gio/gfilemonitor.c:
2085         * gio/glocaldirectorymonitor.c:
2086         * gio/gpollfilemonitor.c:
2087         * gio/inotify/inotify-helper.c:
2088         * gio/fam/fam-helper.c:
2089         Update to the new header names
2090
2091 2007-10-05  Sebastian Dröge  <slomo@circular-chaos.org>
2092
2093         * gio/gdirectorymonitor.c:
2094         * gio/gfilemonitor.c: Mark the GFileMonitor and GDirectoryMonitor
2095         GTypes as abstract.
2096
2097 2007-10-04  Alexander Larsson  <alexl@redhat.com>
2098
2099         * gio/glocalfileinfo.c (get_access_rights):
2100         Set CAN_TRASH when we can move the file.
2101         We should really also check for a parent trash dir.
2102
2103 2007-10-04  Alexander Larsson  <alexl@redhat.com>
2104
2105         * gio/gfileinfo.h (G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH):
2106         Add can_trash access attribute
2107
2108 2007-10-04  Alexander Larsson  <alexl@redhat.com>
2109
2110         * gio/glocalfile.c:
2111         (g_local_file_trash):
2112         Create info file first. This is per-spec and allows
2113         us to actually trash directories.
2114
2115 2007-10-02  Alexander Larsson  <alexl@redhat.com>
2116
2117         * gio/gdesktopappinfo.c:
2118         Implement the new mime support code.
2119         Always set app as handling mimetype when being set as default for it
2120
2121 2007-10-01  Alexander Larsson  <alexl@redhat.com>
2122
2123         * gio/glocalfileinfo.c (_g_local_file_info_set_attribute):
2124         Fix up check for xattrs:
2125
2126 2007-10-01  Alexander Larsson  <alexl@redhat.com>
2127
2128         * gio/gappinfo.c:
2129         (g_app_info_set_as_default_for_extension):
2130         (g_app_info_add_supports_type):
2131         (g_app_info_can_remove_supports_type):
2132         (g_app_info_remove_supports_type):
2133         Make these fail nicely if not implemented
2134
2135 2007-10-01  Paolo Borelli  <pborelli@katamail.com>
2136
2137         * gio/glocalfileoutputstream.c:
2138         * gio/glocalfileoutputstream.h:
2139         * gio/test-gio.c:
2140         * gio/gfile.c:
2141         * gio/gfile.h:
2142         * gio/glocalfile.c:
2143         * programs/gio-save.c: 
2144         Add a GFileCreateFlags argument to operations that can create
2145         a new file.
2146
2147 2007-10-01  Alexander Larsson  <alexl@redhat.com>
2148
2149         * gio/gappinfo.[ch]:
2150         * gio/gdesktopappinfo.c:
2151         Add more (stubbed out) mime API needed for nautilus
2152
2153 2007-10-01  Alexander Larsson  <alexl@redhat.com>
2154
2155         * gio/gappinfo.h:
2156         Add GAppInfoCreateFlags flag to g_app_info_create_from_commandline.
2157         Add g_app_info_set_as_default_for_extension.
2158         
2159         * gio/gdesktopappinfo.c:
2160         Dummy for g_app_info_set_as_default_for_extension
2161         Support flags in g_app_info_create_from_commandline
2162
2163         * gio/gwin32appinfo.c:
2164         * gio/test-gio.c:
2165         Update for API changes
2166         
2167         * gio/gthemedicon.c:
2168         Properly NULL-terminate list of icon names
2169
2170 2007-09-28  Alexander Larsson  <alexl@redhat.com>
2171
2172         * gio/gloadableicon.h:
2173         Correct G_TYPE_LOADABLE_ICON, it was pointing to the GIcon type...
2174
2175 2007-09-28  Alexander Larsson  <alexl@redhat.com>
2176
2177         * gio/Makefile.am:
2178         Install headers in $includedir/gio-standalone/
2179         
2180         * gio-2.0.pc.in: Added.
2181         * gio-standalone.pc.in: Removed.
2182         * configure.ac:
2183         * Makefile.am:
2184         Renamed pkg-config file to match glib (for future move)
2185         Update to the new include dir
2186         
2187         * gio/gappinfo.h:
2188         Add more TODO comments
2189
2190 2007-09-28  Alexander Larsson  <alexl@redhat.com>
2191
2192         * gio/gdesktopappinfo.[ch]:
2193         Expose new_from_filename
2194         Add getter for is_hidden and handle it better
2195
2196 2007-09-28  Alexander Larsson  <alexl@redhat.com>
2197
2198         * gio/gfileinfo.[ch]:
2199         Rename g_file_size_format_for_display to
2200         g_format_file_size_for_display.
2201         Now it doesn't have the g_file prefix, so we
2202         can later move it to glib.
2203
2204 2007-09-28  Alexander Larsson  <alexl@redhat.com>
2205
2206         * gio/gappinfo.[ch]:
2207         Add g_app_info_get_id and g_app_info_get_executable.
2208         Make all getters non-reffing
2209         Make g_app_info_launch take GFile arguments.
2210         Add must_support_uris argument to g_app_info_get_default_for_type.
2211         
2212         * gio/gwin32appinfo.c:
2213         Update to GAppInfo api changes
2214         
2215         * gio/gdesktopappinfo.c:
2216         Update to GAppInfo api changes
2217         Implement supports_xdg_startup_notify
2218         
2219         * gio/gfileicon.c (g_file_icon_get_file):
2220         Make getter non-reffing.
2221         
2222         * gio/test-gio.c:
2223         Update to new API
2224
2225 2007-09-27  Alexander Larsson  <alexl@redhat.com>
2226
2227         * gio/gfileinfo.[ch]: 
2228         Add g_file_size_format_for_display helper
2229         
2230 2007-09-27  Alexander Larsson  <alexl@redhat.com>
2231
2232         * gio/glocalfileinfo.c:
2233         Set UNIX_GID from gid, not from uid
2234
2235 2007-09-27  Alexander Larsson  <alexl@redhat.com>
2236
2237         * gio/gfile.[ch]:
2238         Add g_file_set_attributes_async
2239
2240 2007-09-27  Alexander Larsson  <alexl@redhat.com>
2241
2242         * gio/glocalfile.c (g_local_file_set_display_name):
2243         Fix set_display_name to actually rename to the right place.
2244         Use lstat to look for existing files so we don't overwrite
2245         broken links.
2246
2247 2007-09-26  Alexander Larsson  <alexl@redhat.com>
2248
2249         * gio/gfile.[ch]:
2250         Add g_file_set_display_name_async()
2251
2252 2007-09-26  Alexander Larsson  <alexl@redhat.com>
2253
2254         * gio/gfile.[ch]:
2255         Add load_partial_contents async calls
2256         
2257         * gio/glocalfile.c:
2258         Make internal function static
2259
2260 2007-09-26  Alexander Larsson  <alexl@redhat.com>
2261
2262         * gio/glocalfileinfo.c:
2263         Correctly detect broken symlinks
2264
2265 2007-09-26  Alexander Larsson  <alexl@redhat.com>
2266
2267         * gio/gcancellable.c (g_cancellable_cancel):
2268         Allow cancel on NULL cancellable
2269
2270 2007-09-25  Alexander Larsson  <alexl@redhat.com>
2271
2272         * gio/gsimpleasyncresult.c:
2273         Don't allocate g_error manually.
2274         Fixes g_slice/g_new mixup crash
2275
2276 2007-09-25  Alexander Larsson  <alexl@redhat.com>
2277
2278         * gio/glocaldirectorymonitor.c (g_local_directory_monitor_new):
2279         Actually set active_backend.
2280         This means the monitor will be cancelled correctly.
2281
2282 2007-09-25  Alexander Larsson  <alexl@redhat.com>
2283
2284         * gio/gdirectorymonitor.c:
2285         Set timeout to NULL when destroying
2286
2287 2007-09-25  Alexander Larsson  <alexl@redhat.com>
2288
2289         * gio/gioerror.h:
2290         Rename G_IO_ERROR_NOT_MOUNTABLE to G_IO_ERROR_NOT_MOUNTABLE_FILE as
2291         that is a better description of the error.
2292
2293 2007-09-25  Sebastian Dröge  <slomo@circular-chaos.org>
2294
2295         * gio/gvfs.c: (g_vfs_get_local):
2296         Make the local vfs variable static. The same instance should
2297         always be returned.
2298
2299 2007-09-24  Alexander Larsson  <alexl@redhat.com>
2300
2301         * gio/glocalfileinfo.c:
2302         Pass in actual length read into sniffer, not the length
2303         we tried to read.
2304
2305 2007-09-21  Alexander Larsson  <alexl@redhat.com>
2306
2307         * gio/gfileenumerator.c:
2308         * gio/gfileinfo.c:
2309         * gio/gfileinfo.h:
2310         * gio/gfileinputstream.c:
2311         * gio/gfileoutputstream.c:
2312         * gio/ginputstream.c:
2313         * gio/goutputstream.c:
2314         Don't crash if async callbacks are NULL
2315
2316 2007-09-20  Alexander Larsson  <alexl@redhat.com>
2317
2318         * gio/gfile.[ch]:
2319         Add async enumerate_children method and default
2320         implementation
2321
2322 2007-09-20  Alexander Larsson  <alexl@redhat.com>
2323
2324         * gio/gfile.[ch]
2325         Add g_file_contains_file & g_file_get_relative_path, since they
2326         were needed for nautilus.
2327         Renamed g_file_resolve_relative to g_file_resolve_relative_path
2328         to make it clearer.
2329         
2330         * gio/gdummyfile.c:
2331         * gio/glocalfile.c:
2332         Implement new methods
2333
2334 2007-09-17  Alexander Larsson  <alexl@redhat.com>
2335
2336         * gio/gfile.[ch]:
2337         * gio/gfileinputstream.[ch]:
2338         * gio/gfileoutputstream.[ch]:
2339         * gio/glocalfile.c:
2340         * gio/glocalfileenumerator.[ch]:
2341         * gio/glocalfileinfo.[ch]:
2342         * gio/glocalfileinputstream.c:
2343         * gio/glocalfileoutputstream.c:
2344         * gio/gpollfilemonitor.c:
2345         * programs/gio-copy.c:
2346         * programs/gio-info.c:
2347         * programs/gio-move.c:
2348         Rename get_file_info to query_info() to make it clearer
2349         that these are not simple getters, but do i/o.
2350
2351 2007-09-17  Alexander Larsson  <alexl@redhat.com>
2352
2353         * gio/gdatainputstream.[ch]:
2354         * gio/test-streams.c:
2355         Use _read_XXX instead of _get_XXX for the i/o calls
2356         in GDataInputStream
2357
2358 2007-09-17  Alexander Larsson  <alexl@redhat.com>
2359
2360         * gio/gappinfo.h:
2361         Added needed stuff to TODO comment
2362
2363 2007-09-17  Alexander Larsson  <alexl@redhat.com>
2364
2365         * gio/glocalfileoutputstream.c (g_local_file_output_stream_close):
2366         Don't error out removing the backup copy if it doesn't
2367         already exist.
2368
2369 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2370
2371         * programs/Makefile.am:
2372         * programs/gvfs-*.c: 
2373         * programs/gio-*.c:
2374         Renamed apps from gvfs-xxx to gio-xxx.
2375
2376 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2377
2378         * gio/gfile.c:
2379         * gio/gfileoutputstream.[ch]:
2380         * gio/glocalfileoutputstream.c:
2381         * programs/gvfs-save.c:
2382         g_file_output_stream_get_etag doesn't do i/o, so remove
2383         cancellation and error.
2384
2385 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2386
2387         * gio/gfile.[ch]:
2388         Add new_etag output to replace_contents functions
2389
2390 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2391
2392         * gio/gfileoutputstream.[ch]:
2393         Add async get_file_info and default implementation
2394
2395 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2396
2397         * gio/gfileinputstream.c:
2398         Implement fallback wrapper for async get_file_info
2399
2400 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2401
2402         * gio/gfile.[ch]:
2403         Add etag out argument to load_contents
2404         
2405         * gio/test-gio.c:
2406         Update to new API
2407
2408 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2409
2410         * gio/gcontenttype.c (looks_like_text):
2411         Whitespace like tab, cr and lf do not make the
2412         file binary.
2413
2414 2007-09-14  Alexander Larsson  <alexl@redhat.com>
2415
2416         * gio/gfileinputstream.[ch]:
2417         Add async get_file_info.
2418
2419 2007-09-13  Alexander Larsson  <alexl@redhat.com>
2420
2421         * gio/goutputstream.c (g_output_stream_write_all):
2422         Allow NULL for bytes_written
2423
2424 2007-09-13  Alexander Larsson  <alexl@redhat.com>
2425
2426         * gio/gmemoryinputstream.[ch]:
2427         Add accessors for data
2428
2429 2007-09-13  Alexander Larsson  <alexl@redhat.com>
2430
2431         * gio/gdatainputstream.c (g_data_input_stream_get_until):
2432         Don't crash if length is NULL
2433