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