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