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