1 2007-11-27 Alexander Larsson <alexl@redhat.com>
4 * gsocketinputstream.[ch]: Removed.
5 * gsocketoutputstream.[ch]: Removed.
6 * gunixinputstream.[ch]: Added.
7 * gunixoutputstream.[ch]: Added.
8 Renamed GSocket*Stream to GUnix*Stream and made
9 it unix-only, since its not really only for sockets
10 and it only works on unix (but is highly useful there).
12 2007-11-27 Andrew Walton <awalton@svn.gnome.org>
18 * gbufferedinputstream.c:
19 * gbufferedinputstream.h:
20 * gbufferedoutputstream.c:
21 * gbufferedoutputstream.h:
27 * gdataoutputstream.c:
28 * gdataoutputstream.h:
29 * gdirectorymonitor.c:
30 * gdirectorymonitor.h:
47 * gfilenamecompleter.c:
48 * gfilenamecompleter.h:
49 * gfileoutputstream.c:
50 * gfileoutputstream.h:
51 * gfilterinputstream.c:
52 * gfilterinputstream.h:
53 * gfilteroutputstream.c:
54 * gfilteroutputstream.h:
67 * glocalfileoutputstream.c:
68 * gmemoryinputstream.c:
69 * gmemoryinputstream.h:
70 * gmemoryoutputstream.c:
71 * gmemoryoutputstream.h:
79 * gsimpleasyncresult.c:
80 * gsimpleasyncresult.h:
81 * gsocketinputstream.c:
82 * gsocketinputstream.h:
83 * gsocketoutputstream.c:
84 * gsocketoutputstream.h:
91 * gunixvolumemonitor.c:
100 Bumps documentation to 93% symbol coverage, touching most
101 of the public files. Fixes broken function documentation prototypes.
102 Fixes GCancellable inaccuracies. Removes unnecessary incomplete
103 gtk-doc headers in private files.
105 2007-11-27 Jürg Billeter <j@bitron.ch>
107 * gbufferedinputstream.c: (g_buffered_input_stream_peek_buffer),
108 (g_buffered_input_stream_read_byte):
109 * gbufferedinputstream.h:
110 New functions for efficient access to buffer and simple single byte
113 * gdatainputstream.c: (scan_for_newline), (scan_for_chars),
114 (g_data_input_stream_read_until):
115 * gdatainputstream.h:
116 Use peek_buffer to avoid memcpy in scan_for_newline, implement
117 read_until with multiple stop chars.
119 2007-11-27 Alexander Larsson <alexl@redhat.com>
123 * inotify/Makefile.am:
124 Use the user-specified giomoduledir
126 2007-11-27 Alexander Larsson <alexl@redhat.com>
130 Add catch-all gio.h header
131 Don't install gdummyfile.h
133 2007-11-26 Alexander Larsson <alexl@redhat.com>
135 * Makefile.am (gioinclude_HEADERS):
136 Remove trailing whitespace
138 2007-11-26 Alexander Larsson <alexl@redhat.com>
140 Merge gio-standalone into glib
142 2007-11-25 Christian Kellner <gicmo@gnome.org>
144 * gio/goutputstream.c:
145 Fix small mistake in the docs.
147 2007-11-21 Christian Persch <chpe@gnome.org>
149 * gio/glocalfile.c: (g_local_file_trash):
150 Convert filenames to UTF-8 for GError.
151 Use g_mkdir_with_parent to create the Trash dir, and use mode 0700
152 as per xdg base dir spec.
154 2007-11-21 Christian Persch <chpe@gnome.org>
156 * gio/gdesktopappinfo.c:
157 Use that g_key_file_to_data cannot fail.
159 Use stock defines for the key file group and key names.
162 2007-11-21 Alexander Larsson <alexl@redhat.com>
165 (copy_stream_with_progress):
166 Make sure we do a final progress callback with
169 2007-11-21 Alexander Larsson <alexl@redhat.com>
172 Export g_file_copy_attributes
173 Remove padding as its not needed for interfaces
175 2007-11-20 Alexander Larsson <alexl@redhat.com>
180 Add G_IO_ERROR_WOULD_MERGE for
181 copy/move dir on dir with overwrite.
183 2007-11-20 Alexander Larsson <alexl@redhat.com>
186 * gio/glocalfileinfo.c:
187 Add COPY_NAME (this is an optional
188 non-modified utf8 version of the name) that
191 2007-11-20 Alexander Larsson <alexl@redhat.com>
193 * gio/glocalfileenumerator.c:
194 Report errors as GIOError, not GFileError
196 2007-11-16 Alexander Larsson <alexl@redhat.com>
198 * gio/glocalfileoutputstream.c:
199 * gio/gwin32appinfo.c:
200 Fix typos in strings.
201 Patch from Luca Ferretti <elle.uca@libero.it>
203 2007-11-15 Alexander Larsson <alexl@redhat.com>
206 Post release version bump
208 === gio-standalone 0.1.2 ===
210 2007-11-15 Alexander Larsson <alexl@redhat.com>
212 * docs/reference/gio/Makefile.am:
213 Fix up distcheck by removing weird
219 2007-11-14 Alexander Larsson <alexl@redhat.com>
221 * gio/gdesktopappinfo.c:
222 * gio/glocaldirectorymonitor.c:
224 * gio/glocalfileinfo.c:
225 * gio/inotify/inotify-sub.c:
226 * programs/gio-cat.c:
227 * programs/gio-copy.c:
228 * programs/gio-info.c:
230 * programs/gio-monitor-dir.c:
231 * programs/gio-monitor-file.c:
232 * programs/gio-mount.c:
233 * programs/gio-move.c:
235 * programs/gio-save.c:
236 * programs/gio-trash.c:
237 Leak fixes from Kjartan Maraas
239 2007-11-14 Alexander Larsson <alexl@redhat.com>
241 * gio/fam/fam-helper.c:
243 * gio/glocalfileinfo.c:
247 * gio/inotify/inotify-diag.c:
248 * gio/inotify/inotify-kernel.c:
249 Various code cleanups from Kjartan Maraas
251 2007-11-14 Alexander Larsson <alexl@redhat.com>
253 * gio/gioscheduler.c:
255 Set up threadpool so that we cache 2 unused
256 idle threads for at 15 secs. This means we
257 will reuse thread-local data (like dbus connections)
260 2007-11-14 Alexander Larsson <alexl@redhat.com>
262 * gio/fam/fam-helper.c:
263 * gio/fam/gfamdirectorymonitor.c:
264 * gio/fam/gfamfilemonitor.c:
266 * gio/gcontenttype.c:
267 * gio/gdatainputstream.c:
268 * gio/gdataoutputstream.c:
272 * gio/gfileattribute.h:
273 * gio/gfileenumerator.c:
275 * gio/ginputstream.c:
278 * gio/glocalfileinfo.c:
279 * gio/goutputstream.c:
280 * gio/gpollfilemonitor.c:
281 * gio/gsimpleasyncresult.c:
284 * gio/inotify/ginotifydirectorymonitor.c:
285 * gio/inotify/ginotifyfilemonitor.c:
286 * gio/inotify/inotify-diag.c:
287 * gio/inotify/inotify-kernel.c:
288 * gio/inotify/inotify-path.c:
290 * gio/test-streams.c:
291 * programs/gio-info.c:
292 * programs/gio-monitor-dir.c:
293 * programs/gio-monitor-file.c:
294 Various code cleanups from Kjartan Maraas
296 2007-11-13 Alexander Larsson <alexl@redhat.com>
299 Handle the uri-scheme calls for dummy files
301 2007-11-13 Marko Anastasov <marko@marko.anastasov.name>
303 * gio/gio/gfileinfo.[ch]: Use a different parameter name instead of
304 'namespace' for in g_file_attribute_matcher_enumerate_namespace()
305 to avoid clash with the C++ keyword.
307 2007-11-13 Marko Anastasov <marko@marko.anastasov.name>
309 * gio/glocalfileinfo.c: Build fix, added missing semicolon
310 to an ifdef'ed call to getpwuid() in lookup_uid_data().
312 2007-11-11 Sebastian Dröge <slomo@circular-chaos.org>
314 * gio/glocaldirectorymonitor.c:
315 * gio/glocalfilemonitor.c:
316 * gio/gunionvolumemonitor.c:
317 Don't use g_once_init_*() for initializations that could fail and
318 could leave the initialization variable set to 0 but use GOnce.
319 This prevents a deadlock on the second call when trying to create
320 a monitor and no monitor type is available. Thanks to Sven Herzberg
323 2007-11-11 Sven Herzberg <sven@imendio.com>
325 * gio/glocalfile.c: guard the #include <sys/statfs.h> by the correct
326 #ifdef (make it work on MacOS X again)
328 2007-11-09 Andrew Walton <awalton@svn.gnome.org>
330 Fixes Changelog for last two commits (sorry guys).
332 2007-11-07 Andrew Walton <awalton@svn.gnome.org>
334 * gio/gbufferedinputstream.c:
335 * gio/gdatainputstream.c:
337 * gio/gfileoutputstream.c:
338 * gio/gfilterinputstream.c:
339 * gio/glocalfileinputstream.c:
342 More consistency fixes in g*stream.c files.
343 Significant clean of gfile's documentation, filling in of
344 asynchronous operations documentation.
346 2007-11-07 Andrew Walton <awalton@svn.gnome.org>
348 * gio/gasyncresult.c:
349 * gio/gbufferedinputstream.c:
350 * gio/gbufferedoutputstream.c:
351 * gio/gcancellable.c:
352 * gio/gcontenttype.c:
353 * gio/gdatainputstream.c:
354 * gio/gdataoutputstream.c:
355 * gio/gdesktopappinfo.c:
358 * gio/gfileattribute.c:
359 * gio/gio/gfileenumerator.c:
361 * gio/gfileinputstream.c:
362 * gio/gfilemonitor.c:
363 * gio/gfileoutputstream.c:
364 * gio/ginputstream.c:
366 * gio/gioscheduler.c:
367 * gio/gloadableicon.c:
368 * gio/glocalfileoutputstream.c:
369 * gio/gmemoryoutputstream.c:
370 * gio/gmountoperation.c:
371 * gio/goutputstream.c:
373 * gio/gsimpleasyncresult.c:
374 * gio/gunionvolumemonitor.c:
380 * gio/gvolumemonitor.c:
381 Updated documentation stubs, working towards consistency and
384 2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
386 * gio/gmemoryoutputstream.c:
387 * gio/gmemoryoutputstream.h:
388 Change g_memory_output_stream_set_free_on_close() to
389 g_memory_output_stream_set_free_data() as this makes more sense and
390 is more consistent with GMemoryInputStream.
392 2007-11-07 Alexander Larsson <alexl@redhat.com>
399 Change how we find the default vfs so that
400 we can handle a gvfs failing to init
402 2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
404 * gio/gbufferedoutputstream.c:
405 * gio/gdatainputstream.c:
406 * gio/gdataoutputstream.c:
407 * gio/gfileinputstream.c:
408 * gio/gfileoutputstream.c:
409 * gio/gfilterinputstream.c:
410 * gio/gfilteroutputstream.c:
411 * gio/ginputstream.c:
412 * gio/gmemoryinputstream.c:
413 * gio/gmemoryoutputstream.c:
414 * gio/goutputstream.c:
415 * gio/gsimpleasyncresult.c:
416 * gio/gsocketinputstream.c:
417 * gio/gsocketoutputstream.c:
418 Add guards to the remaining public functions, add a TODO for
419 an unimplemented function and remove some useless guards.
421 2007-11-07 Alexander Larsson <alexl@redhat.com>
424 Autoconf checks for the various types of
425 getpwuid_r and getgrgid_r
427 * gio/glocalfileinfo.c:
428 Use the autoconf checks from above
430 2007-11-07 Alexander Larsson <alexl@redhat.com>
433 (g_local_file_query_filesystem_info):
434 Some fixes for the statvfs case
436 2007-11-07 Alexander Larsson <alexl@redhat.com>
439 (g_local_file_query_filesystem_info):
440 Pick the "best" of statfs / statvfs for the system
441 if both are availible.
443 2007-11-07 Alexander Larsson <alexl@redhat.com>
445 Solaris fixes from Halton.Huo@Sun.COM:
452 * gio/glocalfileinfo.c:
453 Fix for solaris definition of getpwuid_r
455 * gio/test-streams.c:
456 Use G_GNUC_PRETTY_FUNCTION
458 2007-11-07 Alexander Larsson <alexl@redhat.com>
460 * gio/gdesktopappinfo.c:
461 (update_default_list):
462 Remove double semicolon.
463 Patch from Jens Granseuer
465 2007-11-06 Sebastian Dröge <slomo@circular-chaos.org>
467 * docs/reference/gio/gio-sections.txt:
468 * gio/gbufferedinputstream.c:
469 * gio/gbufferedinputstream.h:
470 * gio/gdatainputstream.c:
471 * gio/gfileenumerator.c:
472 * gio/gioscheduler.c:
473 * gio/gunionvolumemonitor.c:
475 * programs/gio-save.c:
476 Fix typo: availible -> available. Unfortuntely this breaks API
477 and ABI as g_buffered_input_stream_get_available() was renamed.
480 * gio/gbufferedinputstream.c:
481 Add guards for public functions.
483 2007-11-06 Ross Burton <ross@openedhand.com>
485 * docs/reference/gio/Makefile.am:
486 Fix invalid += usage which automake 1.10 doesn't like.
488 2007-11-06 Alexander Larsson <alexl@redhat.com>
491 (g_app_launch_context_class_init):
494 Patch from Ross Burton
496 2007-11-06 Alexander Larsson <alexl@redhat.com>
499 Post release version bump
501 === gio-standalone 0.1.1 ===
503 2007-11-06 Alexander Larsson <alexl@redhat.com>
506 Bump version to 0.1.1
508 * gio/gsimpleasyncresult.c:
509 (g_simple_async_result_set_from_error):
510 Remove bogus g_return_if_fail
512 2007-11-06 Alexander Larsson <alexl@redhat.com>
515 The name is gio-standalone
518 Add top src/builddir to includedir
520 2007-11-06 Alexander Larsson <alexl@redhat.com>
522 * docs/reference/gio/gio-sections.txt:
524 * gio/gbufferedinputstream.c:
525 * gio/gbufferedoutputstream.c:
526 * gio/gcancellable.c:
527 * gio/gdatainputstream.h:
528 * gio/gdataoutputstream.c:
529 * gio/gdataoutputstream.h:
530 * gio/gdirectorymonitor.c:
532 * gio/gfileattribute.c:
533 * gio/gfileattribute.h:
534 * gio/gfileenumerator.c:
535 * gio/gfileenumerator.h:
538 * gio/gfileinputstream.h:
539 * gio/gfilemonitor.c:
540 * gio/gfileoutputstream.h:
541 * gio/glocalfilemonitor.h:
542 * gio/glocalfileoutputstream.h:
543 * gio/gmemoryinputstream.c:
544 * gio/gmemoryoutputstream.c:
545 * gio/gmountoperation.c:
546 * gio/goutputstream.c:
547 * gio/goutputstream.h:
549 * gio/gsimpleasyncresult.c:
553 * gio/inotify/inotify-helper.c:
556 Patch from Ross Burton
558 2007-11-06 Alexander Larsson <alexl@redhat.com>
560 * gio/gfilenamecompleter.c:
561 (g_filename_completer_get_completions):
565 Remove unused function
567 Patches from Ross Burton
569 2007-11-06 Alexander Larsson <alexl@redhat.com>
574 Padding not needed for interfaces
576 2007-11-06 Alexander Larsson <alexl@redhat.com>
578 * gio/gfilemonitor.c:
582 Make giotypes.h an internal file
585 * gio/gbufferedinputstream.h:
586 * gio/gbufferedoutputstream.h:
587 * gio/gcancellable.h:
588 * gio/gdatainputstream.h:
589 * gio/gdataoutputstream.h:
590 * gio/gdirectorymonitor.c:
591 * gio/gdirectorymonitor.h:
596 * gio/gfileattribute.h:
597 * gio/gfileenumerator.h:
602 * gio/gfilemonitor.c:
603 * gio/gfilemonitor.h:
604 * gio/gfilenamecompleter.c:
605 * gio/gfilenamecompleter.h:
606 * gio/gfilterinputstream.h:
607 * gio/gfilteroutputstream.h:
608 * gio/ginputstream.h:
609 * gio/gmemoryinputstream.h:
610 * gio/gmemoryoutputstream.h:
611 * gio/gmountoperation.c:
612 * gio/gmountoperation.h:
613 * gio/gnativevolumemonitor.c:
614 * gio/goutputstream.h:
617 * gio/gsimpleasyncresult.c:
618 * gio/gsimpleasyncresult.h:
619 * gio/gsocketinputstream.h:
620 * gio/gsocketoutputstream.h:
626 * gio/gvolumemonitor.c:
627 * gio/gvolumemonitor.h:
628 Add padding in classes where it seems useful
629 Don't include giotypes.h from public headers
630 Move in Class definitions into c file where possible
635 2007-11-06 Alexander Larsson <alexl@redhat.com>
637 * docs/reference/gio/gio-docs.xml:
638 Better structure for API docs
640 2007-11-06 Sebastian Dröge <slomo@circular-chaos.org>
643 * gio/gloadableicon.c:
644 * gio/gsimpleasyncresult.c:
646 Add some more guards to public functions. Only files missing are now
649 2007-11-06 Alexander Larsson <alexl@redhat.com>
651 * docs/reference/gio/gio-docs.xml:
652 Remove old files, add missing ones
654 2007-11-06 Alexander Larsson <alexl@redhat.com>
656 * docs/reference/gio/gio-sections.txt:
659 Hide implementation classes
661 * gio/gdriveprivate.h:
662 * gio/gvolumeprivate.h:
663 Remove non-existing function declarations
665 2007-11-06 Sebastian Dröge <slomo@circular-chaos.org>
668 Fix compilation warnings and add guards to the new functions.
670 * gio/gasyncresult.c:
672 Add guards to the public functions.
675 Implement get_path().
677 2007-11-06 Alexander Larsson <alexl@redhat.com>
679 * gio/gfilenamecompleter.c:
680 Make g_filename_completer_get_completions
681 return char ** instead of GList for
684 * docs/reference/gio/gio-docs.xml:
685 * docs/reference/gio/gio-sections.txt:
687 * gio/gasyncresult.c:
688 * gio/gbufferedinputstream.c:
689 * gio/gbufferedoutputstream.c:
690 * gio/gcancellable.c:
691 * gio/gcontenttype.c:
692 * gio/gdatainputstream.c:
693 * gio/gdataoutputstream.c:
694 * gio/gdesktopappinfo.c:
695 * gio/gdirectorymonitor.c:
699 * gio/gfileattribute.c:
700 * gio/gfileenumerator.c:
703 * gio/gfileinputstream.c:
704 * gio/gfilemonitor.c:
705 * gio/gfilenamecompleter.c:
706 * gio/gfilenamecompleter.h:
707 * gio/gfileoutputstream.c:
708 * gio/gfilterinputstream.c:
710 * gio/ginputstream.c:
712 * gio/gioscheduler.c:
713 * gio/gloadableicon.c:
714 * gio/glocaldirectorymonitor.c:
716 * gio/glocalfileinputstream.c:
717 * gio/glocalfilemonitor.c:
718 * gio/glocalfileoutputstream.c:
720 * gio/gmemoryinputstream.c:
721 * gio/gmemoryoutputstream.c:
722 * gio/gmountoperation.c:
723 * gio/goutputstream.c:
724 * gio/gpollfilemonitor.c:
726 * gio/gsimpleasyncresult.c:
727 * gio/gsocketinputstream.c:
728 * gio/gsocketoutputstream.c:
730 * gio/gunionvolumemonitor.c:
734 * gio/gunixvolumemonitor.c:
738 * gio/gvolumemonitor.c:
739 * gio/gwin32appinfo.c:
740 Add (mostly stub) doc strings to public functions.
741 Patch from Andrew Walton (awalton@gmail.com)
743 2007-11-06 Alexander Larsson <alexl@redhat.com>
746 Added GAppLaunchContext object and pass that to launch.
747 This allows simple implementation of both
748 launch-on-screen and startup notification via a gtk+
749 subclass of GAppLaunchContext
751 * gio/gdesktopappinfo.c:
752 Implement GAppLaunchContext API
754 * gio/gwin32appinfo.c:
757 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
759 * gio/gmountoperation.c:
760 Add some guards to GMountOperation's public functions.
762 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
766 * gio/gcancellable.c:
767 * gio/gdirectorymonitor.c:
769 * gio/gfileenumerator.c:
770 * gio/gfilemonitor.c:,
771 * gio/gfilenamecompleter.c:
774 * gio/gioscheduler.c:
778 * gio/gvolumemonitor.c:
779 Add even more guards to various public functions.
781 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
784 Add guards to the public functions of GAppInfo.
786 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
788 * gio/gcontenttype.c:
789 Add some more guards for public functions.
791 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
793 * gio/fam/fam-module.c:
794 * gio/fam/gfamdirectorymonitor.c:
795 * gio/fam/gfamdirectorymonitor.h:
796 * gio/fam/gfamfilemonitor.c:
797 * gio/fam/gfamfilemonitor.h:
798 * gio/inotify/ginotifydirectorymonitor.c:
799 * gio/inotify/ginotifydirectorymonitor.h:
800 * gio/inotify/ginotifyfilemonitor.c:
801 * gio/inotify/ginotifyfilemonitor.h:
802 Add proper copyright information and remove an unused variable
803 in the GInotifyFileMonitor constructor.
805 * gio/gcancellable.c:
806 Add a guard for a public function and an assertion to prevent
807 an undefined program state.
809 2007-11-05 Sebastian Dröge <slomo@circular-chaos.org>
811 * gio/gfileattribute.c:
812 Don't run into an assertion if the given attribute value is NULL
813 in g_file_attribute_value_get_*() but instead return a fallback
814 value that makes sense in most situations. Passing them a attribute
815 value with the wrong type will still run into an assertion.
817 2007-11-02 Sebastian Dröge <slomo@circular-chaos.org>
819 * gio/gfileattribute.c:
821 Add even more guards to the public functions. Also fix the refcounting
822 of GFileAttributeInfoList and GFileAttributeMatcher to be atomic and
823 let g_file_info_list_attributes() filter the attributes by namespace
824 instead of simply ignoring the namespace parameter.
826 2007-11-03 Sven Herzberg <sven@imendio.com>
828 * gio/gdesktopappinfo.c: don't use environ. Use the glib API for that.
829 (This makes gio work on MacOS X again)
831 2007-11-02 Sebastian Dröge <slomo@circular-chaos.org>
834 Build the gio subdirectory before the docs. Otherwise the build will
837 * gio/gvfs.c: (g_vfs_get_name), (g_vfs_get_priority),
838 (g_vfs_get_file_for_path), (g_vfs_get_file_for_uri),
839 (g_vfs_get_supported_uri_schemes), (g_vfs_parse_name):
840 Add guards to the public functions.
842 2007-11-02 Sebastian Dröge <slomo@circular-chaos.org>
844 * gio/gfileattribute.c: (g_file_attribute_value_as_string):
845 Cast parameter to g_type_name_from_instance() to a GTypeInstance *
846 to prevent a compiler warning.
848 * gio/glocalfile.c: (get_mount_info), (find_topdir_for):
849 Set the G_FILE_ATTRIBUTE_FS_READONLY as boolean, not as string and
850 return something in the non-void function find_topdir_for().
852 2007-11-01 Christian Kellner <gicmo@gnome.org>, Ryan Lortie <desrt@desrt.ca>
859 2007-11-01 Ryan Lortie <desrt@desrt.ca>
861 * gappinfo.c (g_app_info_launch, g_app_info_launch_uris):
862 * gappinfo.h (g_app_info_launch, g_app_info_launch_uris):
863 * gwin32appinfo.c (g_win32_app_info_launch):
864 * gdesktopappinfo.c (expand_macro, equal_up_to_equals,
865 envp_for_startup_id, g_desktop_app_info_launch,
866 g_desktop_app_info_launch_uris):
868 Give an opaque 'startup_id' string instead of 'envp'.
869 Support empty file lists for launching new windows.
870 Fix infinite recursion bug when launching URIs.
872 2007-11-01 Sebastian Dröge <slomo@circular-chaos.org>
875 Add guard to the new g_file_get_uri_scheme() function.
877 2007-11-01 Sebastian Dröge <slomo@circular-chaos.org>
880 Convert a g_return_val_if_fail() to setting the GError instead as
881 otherwise applications have to verify the parameter before otherwise
882 and the parameter might come directly from the user.
884 2007-11-01 Sebastian Dröge <slomo@circular-chaos.org>
886 * gio/inotify/ginotify*.[ch]:
887 Add missing copyright information.
889 2007-11-01 Sebastian Dröge <slomo@circular-chaos.org>
892 Add guards in the beginning of public functions to check for valid
893 parameters and fix a bug in copy_stream_with_progress() that could've
894 caused writing less bytes than reading.
895 * gio/glocalfileinfo.c:
896 Check for a NULL parameter and set the GError accordingly then.
897 * gio/goutputstream.c:
898 Fix the same bug as in gfile.c that could've caused writing less bytes
899 than reading in g_output_stream_real_splice().
901 2007-11-01 Sebastien Bacher <seb128@ubuntu.com>
904 Use the correct gvolumeprivate.h naming
906 2007-11-01 Christian Kellner <gicmo@gnome.org>
909 Remove leftover "$(daemon_sources)" entry.
911 2007-11-01 Christian Kellner <gicmo@gnome.org>
916 Add copyright information to source files.
918 2007-11-01 Alexander Larsson <alexl@redhat.com>
922 Add g_file_get_uri_scheme
924 2007-11-01 Alexander Larsson <alexl@redhat.com>
927 * gio/gdesktopappinfo.c:
928 * gio/gwin32appinfo.c:
929 Add g_app_info_get_default_for_uri_scheme.
931 2007-11-01 Alexander Larsson <alexl@redhat.com>
934 Correct filename for gdriveprivate.h
936 2007-10-31 Alexander Larsson <alexl@redhat.com>
939 Rename id:value to id:file
942 * gio/glocalfileinfo.c:
945 2007-10-31 Alexander Larsson <alexl@redhat.com>
949 Remove g_volume_get_platform_id, as thats not
950 needed with the simpler union volume monitor
952 2007-10-31 Alexander Larsson <alexl@redhat.com>
955 * gio/guniondrive.[ch]: Removed.
956 * gio/gunionvolume.[ch]: Removed.
957 Remove GUnionDrive/Volume
959 * gio/gunionvolumemonitor.c:
960 Simplify union volume monitor, now we
961 only have one native volume monitor and
962 we use the actual volumes/drives from the
963 child monitors instead of wrapping them
965 * gio/gnativevolumemonitor.[ch]:
966 Base class for native volume monitors.
967 Includes priority and get_volume_for_mountpoint
970 Add g_file_find_enclosing_volume
973 Remove volume name fs attribute
974 Add readonly fs attribute
977 Implement readonly attribute
978 remove volume name attribute
979 Implement find_enclosing volume
982 Add a volume for "/".
984 * gio/gunixvolume.[ch]:
985 Set better name for /
987 * gio/gunixvolumemonitor.[ch]:
988 Derive from GNativeVolumeMonitor
989 Implement get_volume_for_mountpoint
992 GVolume typedef moved to gfile.h
994 * gio/gvolumeprivate.h:
995 Add g_volume_get_for_mount_path
997 2007-10-31 Alexander Larsson <alexl@redhat.com>
999 * gio/gunixmounts.[ch]:
1000 Add cache info to unix mount listers
1001 Make getmntent use threadsafe
1002 Add is_system_internal attribute for GUnixMount
1004 * gio/gunixvolume.c:
1005 (g_unix_volume_new):
1006 Use is_system_internal instead of own code
1008 * gio/glocaldirectorymonitor.c:
1009 * gio/gunixvolumemonitor.c:
1010 Update to new gunixmounts API
1015 2007-10-30 Alexander Larsson <alexl@redhat.com>
1018 Add volume name fsinfo attribute
1021 Read volume name info
1023 * gio/gunionvolumemonitor.c:
1024 Fix infinite loops when finalizing a union volume monitor
1026 2007-10-30 Alexander Larsson <alexl@redhat.com>
1028 * gio/goutputstream.[ch]:
1029 Add splice() with default implementation
1031 * gio/gsocketoutputstream.c:
1032 (g_socket_output_stream_write):
1033 Return error on cancellation correctly.
1035 2007-10-26 Paolo Borelli <pborelli@katamail.com>
1037 * gio/glocalfile.c (g_local_file_trash):
1038 Do not leak a string.
1040 2007-10-26 Paolo Borelli <pborelli@katamail.com>
1042 * gio/gfile.c (g_file_load_contents):
1043 Unref the stream after closing it.
1045 2007-10-25 Alexander Larsson <alexl@redhat.com>
1047 * gio/gioscheduler.h:
1050 2007-10-25 Alexander Larsson <alexl@redhat.com>
1054 Add g_file_has_uri_scheme and implement for local files
1056 2007-10-25 Paolo Borelli <pborelli@katamail.com>
1058 * gio/gdesktopappinfo.c: do not leak a string.
1060 2007-10-24 Sebastian Dröge <slomo@circular-chaos.org>
1062 * gio/glocaldirectorymonitor.c: (_compare_monitor_class_by_prio),
1063 (g_local_directory_monitor_new):
1064 * gio/glocalfilemonitor.c: (_compare_monitor_class_by_prio),
1065 (g_local_file_monitor_new):
1066 Only look for the monitor type that should be used the first time
1067 and use g_qsort_with_data() instead of our own bubble sort
1070 2007-10-24 Sebastian Dröge <slomo@circular-chaos.org>
1073 * gio/fam/Makefile.am:
1074 * gio/fam/fam-helper.c: (_fam_sub_startup), (_fam_sub_add):
1075 * gio/fam/fam-helper.h:
1076 * gio/fam/fam-module.c: (g_io_module_load), (g_io_module_unload):
1077 * gio/fam/gfamdirectorymonitor.c:
1078 * gio/fam/gfamdirectorymonitor.h:
1079 * gio/fam/gfamfilemonitor.c: (g_fam_file_monitor_finalize),
1080 * gio/fam/gfamfilemonitor.h:
1081 * gio/glocaldirectorymonitor.c:
1082 * gio/glocaldirectorymonitor.h:
1083 * gio/glocalfilemonitor.c: (g_local_file_monitor_init),
1084 * gio/glocalfilemonitor.h:
1085 * gio/inotify/Makefile.am:
1086 * gio/inotify/ginotifydirectorymonitor.c:
1087 * gio/inotify/ginotifydirectorymonitor.h:
1088 * gio/inotify/ginotifyfilemonitor.c:
1089 * gio/inotify/ginotifyfilemonitor.h:
1090 Implement the FAM and Inotify monitors as
1091 GLocal(Directory|File)Monitor subclasses and put the FAM monitors into
1092 their own GIO module. GLocal(Directory|File)Monitor will use the
1093 monitor with the highest rank that is supported on that machine.
1095 2007-10-23 Sebastian Dröge <slomo@circular-chaos.org>
1098 Change GIO module dir to $(libdir)/gio/modules and change
1099 the log domain from GVFS to GIO. Also only export symbols starting
1100 with g_ in the resulting library.
1101 * gio/test-streams.c: (main):
1102 Set log handler for the GIO log domain.
1104 2007-10-22 Alexander Larsson <alexl@redhat.com>
1106 * gio/gfilenamecompleter.[ch]:
1107 Add g_filename_completer_set_dirs_only
1109 2007-10-22 Alexander Larsson <alexl@redhat.com>
1112 * gio/gurifuncs.[ch]:
1113 Add some simple URI helpers
1115 * gio/gfilenamecompleter.[ch]:
1116 Added object for filename (parse name actually) completion
1119 Handle ~ in parse names
1121 2007-10-17 Alexander Larsson <alexl@redhat.com>
1124 * gio/glocalfileinfo.c:
1125 Add and implement id:value attribute
1127 2007-10-17 Alexander Larsson <alexl@redhat.com>
1130 * gio/guniondrive.c:
1132 Add and implement g_drive_has_volumes
1134 2007-10-17 Alexander Larsson <alexl@redhat.com>
1137 * gio/glocalfileinfo.[ch]:
1138 Add unix:is_mountpoint and implement for local files
1140 2007-10-16 Alexander Larsson <alexl@redhat.com>
1142 * gio/gunionvolumemonitor.c:
1143 (g_union_volume_monitor_init):
1144 Fix up the unix type getting so that it works with gcc
1146 2007-10-12 Alexander Larsson <alexl@redhat.com>
1149 * gio/glocalfileinfo.c:
1150 Add thumbnail:failed to file info
1152 2007-10-12 Richard Hult <richard@imendio.com>
1154 * gio/gvfs.c (get_default_vfs): Make the type volatile to avoid
1155 optimizing away the get_type call (happens with some gcc versions,
1156 like the one shipped with OS X 10.4).
1158 2007-10-12 Alexander Larsson <alexl@redhat.com>
1160 * gio/glocalfileinfo.c:
1161 (_g_local_file_info_set_attribute):
1162 Fix build if not HAVE_XATTR
1163 Patch from Milosz Derezynski <internalerror@gmail.com>
1165 2007-10-11 Sven Herzberg <herzi@gnome-de.org>
1167 * gio/gunixmounts.c: small build fix (sorry, Alex, you haven't been
1168 around for review, otherwise I would have asked you before
1171 2007-10-11 Alexander Larsson <alexl@redhat.com>
1174 Add thumbnail:path attribute
1176 * gio/glocalfileinfo.c:
1177 Implement thumbnail:path for local files
1179 2007-10-11 Alexander Larsson <alexl@redhat.com>
1181 * gio/glocalfileinfo.c:
1182 (_g_local_file_info_get):
1183 Avoid duplicate icon names
1185 2007-10-11 Alexander Larsson <alexl@redhat.com>
1187 * gio/gthemedicon.[ch]:
1188 Change g_themed_icon_get_names return type to const
1190 2007-10-10 Alexander Larsson <alexl@redhat.com>
1192 * gio/glocalfileinfo.c:
1193 Don't reference freed memory
1195 2007-10-10 Alexander Larsson <alexl@redhat.com>
1197 * gio/gfileattribute.c:
1200 * gio/glocalfileinfo.c:
1203 2007-10-10 Alexander Larsson <alexl@redhat.com>
1206 Check for NULL icons
1208 * gio/gfileattribute.c:
1209 Don't dup when getting objects (same as for string attributes)
1211 * gio/gicon.c (g_icon_equal):
1212 Safely handle NULLs in equal
1214 2007-10-10 Alexander Larsson <alexl@redhat.com>
1217 Fix c++ compilation issues
1218 Patch from Milosz Derezynski <internalerror@gmail.com>
1220 2007-10-10 Alexander Larsson <alexl@redhat.com>
1222 * programs/gio-monitor-dir.c:
1223 Don't crash if dir monitor not supported.
1225 2007-10-09 Alexander Larsson <alexl@redhat.com>
1228 Add missing G_END_DECLS
1230 2007-10-09 Sebastian Dröge <slomo@circular-chaos.org>
1232 * gio/gfile.c: (g_file_set_display_name),
1233 (g_file_query_settable_attributes),
1234 (g_file_query_writable_namespaces):
1235 Return NULL not FALSE on errors as the return type is a pointer.
1237 2007-10-09 Sebastian Dröge <slomo@circular-chaos.org>
1239 * gio/glocalfile.c: (g_local_file_monitor_file):
1240 Don't call monitor_file on the default interface vtable (which
1241 is NULL) but simply return NULL. The caller, GFile, will create a
1242 polling monitor if NULL is returned.
1244 2007-10-09 Alexander Larsson <alexl@redhat.com>
1248 * gio-unix-2.0.pc.in:
1249 Add gio-unix-2.0.pc if OS_UNIX
1252 Install gunixmounts.h into gio-unix-2.0 if OS_UNIX
1254 2007-10-09 Alexander Larsson <alexl@redhat.com>
1256 * gio/gunixmounts.[ch]:
1257 Make unix mount monitoring API sane.
1258 Now its just a object with mounts_changed
1259 and mountpoints_changed signals.
1261 * gio/glocaldirectorymonitor.c:
1262 * gio/gunixvolumemonitor.c:
1263 Use new mount monitor api
1265 2007-10-09 Alexander Larsson <alexl@redhat.com>
1267 * gio/gunixmounts.[ch]:
1268 Move guess type into one call for mounts and one for mountpoints
1271 * gio/gunixvolume.c:
1274 2007-10-09 Alexander Larsson <alexl@redhat.com>
1276 * gio/gunixmounts.[ch]:
1277 Remove _ prefix in preparation to make this semi-public
1278 Hide implementation of structs
1280 * gio/glocaldirectorymonitor.c:
1282 * gio/gunixvolume.c:
1283 * gio/gunixvolumemonitor.c:
1284 Update for above API changes
1286 2007-10-08 Alexander Larsson <alexl@redhat.com>
1289 Better polling fallback. This also handles the case where we have
1290 a monitor_file implementation, but it fails.
1292 2007-10-08 Alexander Larsson <alexl@redhat.com>
1296 * gio/gunixmounts.c:
1297 * programs/gio-monitor-dir.c:
1298 * programs/gio-monitor-file.c:
1299 Added cancellable to file monitoring calls.
1300 These are really sync calls and need this.
1302 2007-10-08 Sebastian Dröge <slomo@circular-chaos.org>
1304 * gio/glocalvfs.c: (g_local_vfs_get_supported_uri_schemes),
1305 (g_local_vfs_class_init):
1306 * gio/gvfs.c: (g_vfs_get_supported_uri_schemes):
1307 * gio/gvfs.h: Add functions to get a list of supported URI schemes.
1309 2007-10-05 Alexander Larsson <alexl@redhat.com>
1311 * gio/gdirectorymonitorprivate.h:
1312 * gio/gfilemonitorprivate.h:
1313 * gio/gdirectorymonitor.h:
1314 * gio/gfilemonitor.h:
1315 Remove *private.h and move to the public API, so that
1316 we can do implementations outside gio (such as in gvfs)
1318 * gio/gdirectorymonitor.c:
1319 * gio/gfilemonitor.c:
1320 * gio/glocaldirectorymonitor.c:
1321 * gio/gpollfilemonitor.c:
1322 * gio/inotify/inotify-helper.c:
1323 * gio/fam/fam-helper.c:
1324 Update to the new header names
1326 2007-10-05 Sebastian Dröge <slomo@circular-chaos.org>
1328 * gio/gdirectorymonitor.c:
1329 * gio/gfilemonitor.c: Mark the GFileMonitor and GDirectoryMonitor
1332 2007-10-04 Alexander Larsson <alexl@redhat.com>
1334 * gio/glocalfileinfo.c (get_access_rights):
1335 Set CAN_TRASH when we can move the file.
1336 We should really also check for a parent trash dir.
1338 2007-10-04 Alexander Larsson <alexl@redhat.com>
1340 * gio/gfileinfo.h (G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH):
1341 Add can_trash access attribute
1343 2007-10-04 Alexander Larsson <alexl@redhat.com>
1346 (g_local_file_trash):
1347 Create info file first. This is per-spec and allows
1348 us to actually trash directories.
1350 2007-10-02 Alexander Larsson <alexl@redhat.com>
1352 * gio/gdesktopappinfo.c:
1353 Implement the new mime support code.
1354 Always set app as handling mimetype when being set as default for it
1356 2007-10-01 Alexander Larsson <alexl@redhat.com>
1358 * gio/glocalfileinfo.c (_g_local_file_info_set_attribute):
1359 Fix up check for xattrs:
1361 2007-10-01 Alexander Larsson <alexl@redhat.com>
1364 (g_app_info_set_as_default_for_extension):
1365 (g_app_info_add_supports_type):
1366 (g_app_info_can_remove_supports_type):
1367 (g_app_info_remove_supports_type):
1368 Make these fail nicely if not implemented
1370 2007-10-01 Paolo Borelli <pborelli@katamail.com>
1372 * gio/glocalfileoutputstream.c:
1373 * gio/glocalfileoutputstream.h:
1378 * programs/gio-save.c:
1379 Add a GFileCreateFlags argument to operations that can create
1382 2007-10-01 Alexander Larsson <alexl@redhat.com>
1384 * gio/gappinfo.[ch]:
1385 * gio/gdesktopappinfo.c:
1386 Add more (stubbed out) mime API needed for nautilus
1388 2007-10-01 Alexander Larsson <alexl@redhat.com>
1391 Add GAppInfoCreateFlags flag to g_app_info_create_from_commandline.
1392 Add g_app_info_set_as_default_for_extension.
1394 * gio/gdesktopappinfo.c:
1395 Dummy for g_app_info_set_as_default_for_extension
1396 Support flags in g_app_info_create_from_commandline
1398 * gio/gwin32appinfo.c:
1400 Update for API changes
1402 * gio/gthemedicon.c:
1403 Properly NULL-terminate list of icon names
1405 2007-09-28 Alexander Larsson <alexl@redhat.com>
1407 * gio/gloadableicon.h:
1408 Correct G_TYPE_LOADABLE_ICON, it was pointing to the GIcon type...
1410 2007-09-28 Alexander Larsson <alexl@redhat.com>
1413 Install headers in $includedir/gio-standalone/
1415 * gio-2.0.pc.in: Added.
1416 * gio-standalone.pc.in: Removed.
1419 Renamed pkg-config file to match glib (for future move)
1420 Update to the new include dir
1423 Add more TODO comments
1425 2007-09-28 Alexander Larsson <alexl@redhat.com>
1427 * gio/gdesktopappinfo.[ch]:
1428 Expose new_from_filename
1429 Add getter for is_hidden and handle it better
1431 2007-09-28 Alexander Larsson <alexl@redhat.com>
1433 * gio/gfileinfo.[ch]:
1434 Rename g_file_size_format_for_display to
1435 g_format_file_size_for_display.
1436 Now it doesn't have the g_file prefix, so we
1437 can later move it to glib.
1439 2007-09-28 Alexander Larsson <alexl@redhat.com>
1441 * gio/gappinfo.[ch]:
1442 Add g_app_info_get_id and g_app_info_get_executable.
1443 Make all getters non-reffing
1444 Make g_app_info_launch take GFile arguments.
1445 Add must_support_uris argument to g_app_info_get_default_for_type.
1447 * gio/gwin32appinfo.c:
1448 Update to GAppInfo api changes
1450 * gio/gdesktopappinfo.c:
1451 Update to GAppInfo api changes
1452 Implement supports_xdg_startup_notify
1454 * gio/gfileicon.c (g_file_icon_get_file):
1455 Make getter non-reffing.
1460 2007-09-27 Alexander Larsson <alexl@redhat.com>
1462 * gio/gfileinfo.[ch]:
1463 Add g_file_size_format_for_display helper
1465 2007-09-27 Alexander Larsson <alexl@redhat.com>
1467 * gio/glocalfileinfo.c:
1468 Set UNIX_GID from gid, not from uid
1470 2007-09-27 Alexander Larsson <alexl@redhat.com>
1473 Add g_file_set_attributes_async
1475 2007-09-27 Alexander Larsson <alexl@redhat.com>
1477 * gio/glocalfile.c (g_local_file_set_display_name):
1478 Fix set_display_name to actually rename to the right place.
1479 Use lstat to look for existing files so we don't overwrite
1482 2007-09-26 Alexander Larsson <alexl@redhat.com>
1485 Add g_file_set_display_name_async()
1487 2007-09-26 Alexander Larsson <alexl@redhat.com>
1490 Add load_partial_contents async calls
1493 Make internal function static
1495 2007-09-26 Alexander Larsson <alexl@redhat.com>
1497 * gio/glocalfileinfo.c:
1498 Correctly detect broken symlinks
1500 2007-09-26 Alexander Larsson <alexl@redhat.com>
1502 * gio/gcancellable.c (g_cancellable_cancel):
1503 Allow cancel on NULL cancellable
1505 2007-09-25 Alexander Larsson <alexl@redhat.com>
1507 * gio/gsimpleasyncresult.c:
1508 Don't allocate g_error manually.
1509 Fixes g_slice/g_new mixup crash
1511 2007-09-25 Alexander Larsson <alexl@redhat.com>
1513 * gio/glocaldirectorymonitor.c (g_local_directory_monitor_new):
1514 Actually set active_backend.
1515 This means the monitor will be cancelled correctly.
1517 2007-09-25 Alexander Larsson <alexl@redhat.com>
1519 * gio/gdirectorymonitor.c:
1520 Set timeout to NULL when destroying
1522 2007-09-25 Alexander Larsson <alexl@redhat.com>
1525 Rename G_IO_ERROR_NOT_MOUNTABLE to G_IO_ERROR_NOT_MOUNTABLE_FILE as
1526 that is a better description of the error.
1528 2007-09-25 Sebastian Dröge <slomo@circular-chaos.org>
1530 * gio/gvfs.c: (g_vfs_get_local):
1531 Make the local vfs variable static. The same instance should
1534 2007-09-24 Alexander Larsson <alexl@redhat.com>
1536 * gio/glocalfileinfo.c:
1537 Pass in actual length read into sniffer, not the length
1540 2007-09-21 Alexander Larsson <alexl@redhat.com>
1542 * gio/gfileenumerator.c:
1545 * gio/gfileinputstream.c:
1546 * gio/gfileoutputstream.c:
1547 * gio/ginputstream.c:
1548 * gio/goutputstream.c:
1549 Don't crash if async callbacks are NULL
1551 2007-09-20 Alexander Larsson <alexl@redhat.com>
1554 Add async enumerate_children method and default
1557 2007-09-20 Alexander Larsson <alexl@redhat.com>
1560 Add g_file_contains_file & g_file_get_relative_path, since they
1561 were needed for nautilus.
1562 Renamed g_file_resolve_relative to g_file_resolve_relative_path
1567 Implement new methods
1569 2007-09-17 Alexander Larsson <alexl@redhat.com>
1572 * gio/gfileinputstream.[ch]:
1573 * gio/gfileoutputstream.[ch]:
1575 * gio/glocalfileenumerator.[ch]:
1576 * gio/glocalfileinfo.[ch]:
1577 * gio/glocalfileinputstream.c:
1578 * gio/glocalfileoutputstream.c:
1579 * gio/gpollfilemonitor.c:
1580 * programs/gio-copy.c:
1581 * programs/gio-info.c:
1582 * programs/gio-move.c:
1583 Rename get_file_info to query_info() to make it clearer
1584 that these are not simple getters, but do i/o.
1586 2007-09-17 Alexander Larsson <alexl@redhat.com>
1588 * gio/gdatainputstream.[ch]:
1589 * gio/test-streams.c:
1590 Use _read_XXX instead of _get_XXX for the i/o calls
1593 2007-09-17 Alexander Larsson <alexl@redhat.com>
1596 Added needed stuff to TODO comment
1598 2007-09-17 Alexander Larsson <alexl@redhat.com>
1600 * gio/glocalfileoutputstream.c (g_local_file_output_stream_close):
1601 Don't error out removing the backup copy if it doesn't
1604 2007-09-14 Alexander Larsson <alexl@redhat.com>
1606 * programs/Makefile.am:
1607 * programs/gvfs-*.c:
1609 Renamed apps from gvfs-xxx to gio-xxx.
1611 2007-09-14 Alexander Larsson <alexl@redhat.com>
1614 * gio/gfileoutputstream.[ch]:
1615 * gio/glocalfileoutputstream.c:
1616 * programs/gvfs-save.c:
1617 g_file_output_stream_get_etag doesn't do i/o, so remove
1618 cancellation and error.
1620 2007-09-14 Alexander Larsson <alexl@redhat.com>
1623 Add new_etag output to replace_contents functions
1625 2007-09-14 Alexander Larsson <alexl@redhat.com>
1627 * gio/gfileoutputstream.[ch]:
1628 Add async get_file_info and default implementation
1630 2007-09-14 Alexander Larsson <alexl@redhat.com>
1632 * gio/gfileinputstream.c:
1633 Implement fallback wrapper for async get_file_info
1635 2007-09-14 Alexander Larsson <alexl@redhat.com>
1638 Add etag out argument to load_contents
1643 2007-09-14 Alexander Larsson <alexl@redhat.com>
1645 * gio/gcontenttype.c (looks_like_text):
1646 Whitespace like tab, cr and lf do not make the
1649 2007-09-14 Alexander Larsson <alexl@redhat.com>
1651 * gio/gfileinputstream.[ch]:
1652 Add async get_file_info.
1654 2007-09-13 Alexander Larsson <alexl@redhat.com>
1656 * gio/goutputstream.c (g_output_stream_write_all):
1657 Allow NULL for bytes_written
1659 2007-09-13 Alexander Larsson <alexl@redhat.com>
1661 * gio/gmemoryinputstream.[ch]:
1662 Add accessors for data
1664 2007-09-13 Alexander Larsson <alexl@redhat.com>
1666 * gio/gdatainputstream.c (g_data_input_stream_get_until):
1667 Don't crash if length is NULL