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