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