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