1. 15 Jan, 2018 1 commit
    • Colin Walters's avatar
      GFile: Add g_file_peek_path() · 4808a957
      Colin Walters authored
      This is a variant of g_file_get_path() which returns a const string to
      the caller, rather than transferring ownership.
      
      I've been carrying `gs_file_get_path_cached()` in libgsystem and it
      has seen a lot of use in the ostree and flatpak codebases.  There are
      probably others too.
      
      I think language bindings like Python/Gjs could also use this to avoid
      an extra malloc (i.e. we could transparently replace
      `g_file_get_path()` with `g_file_peek_path()`.
      
      (Originally by Colin Walters. Tweaked by Philip Withnall to update to
      2.56, change the function name and drop the locking.)
      
      https://bugzilla.gnome.org/show_bug.cgi?id=767976
      4808a957
  2. 15 Nov, 2017 1 commit
  3. 07 Nov, 2017 1 commit
  4. 29 May, 2017 1 commit
  5. 05 Feb, 2015 1 commit
  6. 24 Apr, 2014 1 commit
  7. 31 Jan, 2014 1 commit
  8. 22 Jan, 2014 1 commit
  9. 02 Dec, 2013 1 commit
  10. 06 Sep, 2013 1 commit
  11. 19 Apr, 2013 1 commit
  12. 10 Apr, 2013 1 commit
  13. 13 Jan, 2013 1 commit
  14. 28 Dec, 2012 1 commit
  15. 27 Nov, 2012 1 commit
  16. 30 Jul, 2012 1 commit
  17. 26 May, 2012 1 commit
  18. 09 Dec, 2011 2 commits
  19. 03 Nov, 2011 1 commit
  20. 11 Oct, 2011 1 commit
  21. 09 Oct, 2011 1 commit
  22. 18 Nov, 2009 1 commit
  23. 06 Jul, 2009 2 commits
    • Matthias Clasen's avatar
      Document support_thread_contexts · 3d1e8127
      Matthias Clasen authored
      3d1e8127
    • David Zeuthen's avatar
      Allow interaction when unmounting mounts · 99a1c473
      David Zeuthen authored
      For details, see bug 587482. The new api:
      
       - Provide new _with_operation() variants of all unmount and eject methods
      
       - Add GMountOperation::show-processes signal
         - this can be used to show processes blocking an unmount operation
      
       - Deprecate all unmount and eject methods
      
       - Add g_drive_can_start_degraded() method
         - this is to avoid auto-starting degraded drives
      
       - Make g_drive_stop() resp. g_file_stop_mountable() take a GMountOperation
         - these ops were recently added and not yet public API so it's fine
           to change how they work
      
       - Provide a way to poll mountable files, e.g. g_file_poll_mountable()
      
       - Add some missing file attributes for mountable files
        - G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE
          - needed for the GDU Nautilus extensions to format a volume
        - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
          - mimics g_drive_can_start_degraded()
        - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
          - mimics g_drive_can_poll_for_media()
        - G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC
          - mimics g_drive_is_media_check_automatic()
      99a1c473
  24. 01 Jul, 2009 1 commit
  25. 15 Jun, 2009 1 commit
    • David Zeuthen's avatar
      Bug 585591 – Starting/stopping drives · fae755e0
      David Zeuthen authored
      Add API for starting/stopping drives. This new API will enable
      GVolumeMonitor and GVfs implementations to add support for the
      following features
      
       1. Powering down external hard disk enclosures / drives
      
       2. Starting/stopping multi-disk devices (such as RAID/btrfs/ZFS)
      
       3. Connecting/disconnecting iSCSI devices
      
       4. Reacting to the user pressing e.g. the "remove drive" button on
          a IBM/Lenovo Ultrabay: http://www.thinkwiki.org/wiki/Ultrabay
      
      See the bug for the corresponding GVfs and Nautilus changes.
      fae755e0
  26. 18 May, 2009 1 commit
  27. 13 May, 2009 1 commit
  28. 02 Sep, 2008 1 commit
  29. 02 Jul, 2008 1 commit
  30. 01 Jul, 2008 1 commit
    • Cody Russell's avatar
      Moved all relevant typedefs into these files. · 3d93bf69
      Cody Russell authored
      2008-07-01  Cody Russell  <bratsche@gnome.org>
      
              * gio/gioenums.h:
              * gio/giotypes.h:
      	Moved all relevant typedefs into these	files.
      
              * gio/*.[ch]:
      	Updated wrt added files.
      
              Split types into separate file	for easier maintainership. (#538564)
      
      
      svn path=/trunk/; revision=7127
      3d93bf69
  31. 16 Jun, 2008 1 commit
    • Ross Burton's avatar
      Bug 536252 – GFileEnumerator should allow access to the containing GFile · 3480685d
      Ross Burton authored
      2008-06-16  Ross Burton  <ross@burtonini.com>
      
      	Bug 536252 – GFileEnumerator should allow access to the containing
      	GFile
      	
      	* gio/gfileenumerator.c:
      	* gio/gfileenumerator.h:
      	* gio/gfile.h:
      	Add g_file_enumerator_get_container() and a container writeable
      	construct-only property.  Also shuffle around typedefs to make it
      	compile.
      	
      	* gio/glocalfileenumerator.c:
      	* gio/glocalfileenumerator.h:
      	* gio/glocalfile.c:
      	Instead of a string filename take a GFile in the constructor and
      	use it to set the container property.
      	
      	* gio/gio.symbols:
      	* docs/reference/gio/gio-sections.txt:
      	Update with new API.
      
      svn path=/trunk/; revision=7044
      3480685d
  32. 11 Jun, 2008 1 commit
    • Ross Burton's avatar
      Bug 511367 - add g_file_make_directory_with_parents. · 7653f500
      Ross Burton authored
      2008-06-11  Ross Burton  <ross@burtonini.com>
      
      	Bug 511367 - add g_file_make_directory_with_parents.
      	
      	* gio/gfile.c:
      	* gio/gfile.h:
      	* gio/gio.symbols: Add g_file_make_directory_with_parents.
      
      svn path=/trunk/; revision=7001
      7653f500
  33. 31 Mar, 2008 1 commit
  34. 25 Feb, 2008 1 commit
  35. 21 Feb, 2008 2 commits
    • David Zeuthen's avatar
      Implement this function by moving bits from glocalfileinfo.c · bfda430e
      David Zeuthen authored
      2008-02-21  David Zeuthen  <davidz@redhat.com>
      
      	* glocalfileinfo.c: (_g_local_file_info_get):
      	* gcontenttype.c:
      	(g_content_type_get_icon): Implement this function by
      	moving bits from glocalfileinfo.c
      	(g_content_type_get_description): Unalias before getting
      	description (#517687)
      
      	* gfile.c: (g_file_class_init),
      	(g_file_query_filesystem_info_async),
      	(g_file_query_filesystem_info_finish),
      	(query_filesystem_info_data_free),
      	(query_filesystem_info_async_thread),
      	(g_file_real_query_filesystem_info_async),
      	(g_file_real_query_filesystem_info_finish):
      	* gfile.h: Implement async version of
      	g_file_query_filesystem_info()
      
      	* gfileinfo.h: Add new attributes for filesystem::use-preview
      
      	* gio.symbols: Update
      
      	* gthemedicon.c: (g_themed_icon_append_name):
      	* gthemedicon.h: Add new new convenience function.
      
      	* gunionvolumemonitor.c: (g_union_volume_monitor_dispose),
      	(get_mounts), (get_volumes), (get_connected_drives),
      	(get_volume_for_uuid), (get_mount_for_uuid),
      	(g_union_volume_monitor_init), (populate_union_monitor),
      	(g_volume_monitor_get), (_g_mount_get_for_mount_path),
      	(g_volume_monitor_adopt_orphan_mount):
      	* gvolumemonitor.c:
      	* gvolumemonitor.h: Use recursive locks so it's safe for volume
      	monitor implementations to call into the main volume monitor. Also
      	separate object initialization and volume monitor initialization
      	such that non-native volume monitors can properly adopt their
      	mounts away.
      
      
      svn path=/trunk/; revision=6550
      bfda430e
    • Alexander Larsson's avatar
      Add new g_file_has_prefix that does the same as g_file_contains_file. · 6dc9b7ee
      Alexander Larsson authored
      2008-02-21  Alexander Larsson  <alexl@redhat.com>
      
              * gfile.[ch]:
              * gio.symbols:
      	Add new g_file_has_prefix that does the same as g_file_contains_file.
      	Deprecate g_file_contains_file and add a macro that converts
      	it to g_file_has_prefix.
      	The reason for this change is that the contains_file() name seems to
      	imply that this does more work than what it does, but its really only
      	a name match (from #517086)
      	
              * gdummyfile.c:
              * glocalfile.c:
              * tests/g-file.c:
      	Update to match the above change.
      
      
      svn path=/trunk/; revision=6546
      6dc9b7ee
  36. 19 Feb, 2008 1 commit
  37. 11 Feb, 2008 1 commit
    • Alexander Larsson's avatar
      Added GMountMountFlags enum and added a flags argument to all mount calls. · e3fdcd1f
      Alexander Larsson authored
      2008-02-11  Alexander Larsson  <alexl@redhat.com>
      
              * gfile.[ch]:
              * gmount.[ch]:
              * gvolume.[ch]:
      	Added GMountMountFlags enum and added a flags
      	argument to all mount calls.
      	
      	This is an API/ABI change for future extensibility,
      	as I think we will need at least an
      	inhibit-autorun flag (the panel needs this).
      	There are no flags defined yet though.
      
      
      svn path=/trunk/; revision=6497
      e3fdcd1f