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