1. 14 Oct, 2015 1 commit
  2. 23 May, 2015 1 commit
  3. 01 Sep, 2014 4 commits
  4. 30 Aug, 2014 1 commit
  5. 31 Jan, 2014 1 commit
  6. 01 Aug, 2012 2 commits
  7. 05 Apr, 2012 1 commit
    • Allison Karlitskaya's avatar
      NautilusFile: keep free space information directly · ba04ec0e
      Allison Karlitskaya authored
      There were previously some tricks in nautilus to this effect:
       - when you call nautilus_file_get_volume_free_space() on a
         NautilusFile, the return result is NULL at first and later you get a
         "changed" signal on the file after the value is filled in
       - the value is being stored inside the NautilusDirectory equivalent for
         the file that is created when the call is first performed and kept
         around until after the change signal fires (so that the person
         receiving the change signal can still get the data).  This is done to
         save space by not expanding NautilusFile.
         The NautilusDirectory is then dropped after the change signal is done
       - the nautilus properties window has a 200ms timeout after changes to
         files being reported before it re-queries the properties
      The end result is that the NautilusDirectory (which holds the
      information about the free space) is already freed by the time the
      properties window tries to update the free space display.  This results
      in the directory being recreated and the process starting over again.
      The end result is that we never get the free space shown in the dialog
      and instead we have an infinite loop of CPU usage (fortunately repeating
      only every 200ms, so you get ~5% CPU usage instead of 100%).
      We can solve the problem by just storing the free space information
      directly in the NautilusFile details structure and dropping the dance
      with NautilusDirectory; nothing in NautilusDirectory is actually using
      that information anyway.
  8. 21 Jan, 2012 3 commits
  9. 04 Apr, 2011 1 commit
  10. 26 Jul, 2010 1 commit
  11. 23 Jul, 2010 1 commit
  12. 13 May, 2010 1 commit
  13. 08 Jul, 2009 1 commit
    • David Zeuthen's avatar
      Bug 587486 – Pass GMountOperation to unmount/eject/stop ops · cf553806
      David Zeuthen authored
      - Port everything to use _with_operation() variants of unmount/eject
       - This includes changing the NautilusFile a bit; see the patch
         for details
       - Add support for g_drive_can_start_degraded() so we offer
         to start (degraded) drives even when g_drive_can_start()
         returns FALSE
       - Also add support for new mountable::* attributes so we can
         have "Detect Media" items in the context menu when right-clicking
         mounts/volumes/drives in computer:/// and on the desktop
  14. 29 Jun, 2009 1 commit
  15. 23 Jun, 2009 1 commit
  16. 18 Jun, 2009 1 commit
  17. 01 Apr, 2009 1 commit
    • Alexander Larsson's avatar
      Bug 518481 – URL shortcuts do not open query part · fa0146bc
      Alexander Larsson authored
      2009-04-01  Alexander Larsson  <alexl@redhat.com>
      	Bug 518481 – URL shortcuts do not open query part
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.[ch]:
      	* libnautilus-private/nautilus-desktop-icon-file.c:
      	* libnautilus-private/nautilus-directory-async.c:
      	* libnautilus-private/nautilus-search-directory-file.c:
      	Store NautilusFile activation uri as char *uri, not
      	GFile, as we sometimes handle links that are not true
      	GFile locations such as mailto: links in desktop files.
      	* libnautilus-private/nautilus-desktop-link.[ch]:
              Add nautilus_desktop_link_get_activation_uri
      	* libnautilus-private/nautilus-directory.c:
      	Use public nautilus_file_list_from_uris instead of local
      	copy of it.
      	* libnautilus-private/nautilus-mime-actions.c:
      	Store both NautilusFile and char *uri in ApplicationLaunchParameters.
      	This allows us to correctly handle uris that don't work well as
      	GFiles and pass them unmodified to the launched applications.
      	* libnautilus-private/nautilus-program-choosing.[ch]:
      	Add nautilus_launch_application_by_uri() that launches an application
      	by specifying the file as a uri, so that we can handle uris that
      	don't work well as GFile/NautilusFiles.
      svn path=/trunk/; revision=15157
  18. 11 Mar, 2009 1 commit
    • Alexander Larsson's avatar
      Bug 529295 – Unable to unmount · 8e5cfc80
      Alexander Larsson authored
      2009-03-11  Alexander Larsson  <alexl@redhat.com>
      	Bug 529295 – Unable to unmount
              * libnautilus-private/nautilus-directory-async.c:
      	Set mount on NautilusFile via nautilus_file_set_mount.
              * libnautilus-private/nautilus-file-private.h:
              * libnautilus-private/nautilus-file.c:
      	Add nautilus_file_set_mount to set GMount.
      	Connect to "unmounted" on GMount and invalidate mount attribute
      	in callback.
      svn path=/trunk/; revision=15083
  19. 05 Mar, 2009 1 commit
    • Alexander Larsson's avatar
      Bug 449397 – misinterpreted uid over ssh · 68207c4d
      Alexander Larsson authored
      2009-03-05  Alexander Larsson  <alexl@redhat.com>
      	Bug 449397 – misinterpreted uid over ssh
              * libnautilus-private/nautilus-file-private.h:
              * libnautilus-private/nautilus-file.c:
      	Use the gvfs reported owner/group names instead of the local
      	uid/gui mapping. This allows remote shares to report the correct
      svn path=/trunk/; revision=15059
  20. 24 Feb, 2009 1 commit
    • Alexander Larsson's avatar
      Check for trusted desktop file launchers. · 7632a3e1
      Alexander Larsson authored
      2009-02-24  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-directory-async.c:
      	Check for trusted desktop file launchers.
              * libnautilus-private/nautilus-file-private.h:
              * libnautilus-private/nautilus-file.c:
              * libnautilus-private/nautilus-file.h:
              Add nautilus_file_is_trusted_link.
      	Allow unsetting of custom display name.
              * libnautilus-private/nautilus-mime-actions.c:
      	Display dialog when trying to launch a non-trusted desktop file.
      svn path=/trunk/; revision=15003
  21. 31 Jan, 2009 1 commit
    • Cosimo Cecchi's avatar
      Follow the "OnlyShowIn" and "NotShowIn" == GNOME keys for .desktop files, · 8f976b5f
      Cosimo Cecchi authored
      2009-01-31  Cosimo Cecchi  <cosimoc@gnome.org>
      	* libnautilus-private/nautilus-directory-async.c (lacks_link_info),
      	(monitor_includes_file), (link_info_done), (link_info_got_data),
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.c (nautilus_file_clear_info),
      	* libnautilus-private/nautilus-file.h:
      	* libnautilus-private/nautilus-link.c (string_array_contains),
      	* libnautilus-private/nautilus-link.h:
      	* src/file-manager/fm-desktop-icon-view.c
      	* src/file-manager/fm-directory-view.c (fm_directory_view_init),
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-tree-model.c (should_show_file):
      	Follow the "OnlyShowIn" and "NotShowIn" == GNOME keys for
      	.desktop files,	when they are put on the desktop.
      	Thanks to Federico Mena Quintero and Jared Moore (#338933).
      svn path=/trunk/; revision=14905
  22. 21 Jul, 2008 1 commit
    • Christian Neumair's avatar
      Support restoring from trash (one item at a time). · 838b12f0
      Christian Neumair authored
      2008-07-21  Christian Neumair  <cneumair@gnome.org>
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.c (update_info_internal),
      	* libnautilus-private/nautilus-file.h:
      	* src/file-manager/fm-actions.h:
      	* src/file-manager/fm-directory-view.c
      	(action_restore_from_trash_callback), (restore_from_trash),
      	(update_restore_from_trash_action), (real_update_location_menu),
      	* src/file-manager/nautilus-directory-view-ui.xml:
      	Support restoring from trash (one item at a time).
      svn path=/trunk/; revision=14386
  23. 20 Jul, 2008 1 commit
    • Christian Neumair's avatar
      Query filesystem ID, as referenced string. Use it to determine whether two · ab67b661
      Christian Neumair authored
      2008-07-20  Christian Neumair  <cneumair@gnome.org>
      	* libnautilus-private/nautilus-dnd.c (check_same_fs),
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.c (nautilus_file_clear_info),
      	(finalize), (update_info_internal),
      	* libnautilus-private/nautilus-file.h:
      	Query filesystem ID, as referenced string. Use it to determine whether
      	two files are on the same FS during DND. Gets rid of synchronous I/O.
      svn path=/trunk/; revision=14376
  24. 30 Jun, 2008 1 commit
    • Christian Neumair's avatar
      Scale down huge pixbufs when loading. Massively speed up loading of · 5209289d
      Christian Neumair authored
      2008-06-30  Christian Neumair  <cneumair@gnome.org>
      	* libnautilus-private/nautilus-directory-async.c (thumbnail_done),
      	(thumbnail_loader_size_prepared), (get_pixbuf_for_content),
      	* libnautilus-private/nautilus-file.h:
      	Scale down huge pixbufs when loading. Massively speed up loading of
      	directories where the original image is used as thumbnail.
      	Also try to write the whole file at once rather than writing in chunks.
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.c (nautilus_file_get_icon):
      	Rewrite some flaky parts of thumbnailing.
      	Never scale any thumbnails up.
      	Always compose thumbnail on the fly instead storing it once and
      	scaling it up and down.
      	Add flag to force that thumbnail size matches
      	the output icon size for tree view.
      	* src/file-manager/fm-list-model.c (fm_list_model_get_value):
      	Use this flag.
      svn path=/trunk/; revision=14309
  25. 27 Apr, 2008 1 commit
    • Andrew Walton's avatar
      reviewed by: Christian Neumair · f78a9799
      Andrew Walton authored
      2008-04-26  A. Walton  <awalton@gnome.org>
      	reviewed by: Christian Neumair
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file-utilities.c
      	* libnautilus-private/nautilus-file.c (update_info_internal),
      	* libnautilus-private/nautilus-file.h:
      	Use standard::description in the window title when it's available.
      	Closes bug #516007.
      svn path=/trunk/; revision=14094
  26. 21 Feb, 2008 1 commit
    • David Zeuthen's avatar
      Use g_volume_should_automount() to determine if we should autorun programs · 00e59a6b
      David Zeuthen authored
      2008-02-21  David Zeuthen  <davidz@redhat.com>
      	* libnautilus-private/nautilus-autorun.c: (should_autorun_mount):
      	Use g_volume_should_automount() to determine if we should autorun
      	programs on a mount.
      	* libnautilus-private/nautilus-directory-async.c:
      	(nautilus_async_destroying_file), (lacks_filesystem_info),
      	(wants_filesystem_info), (request_is_satisfied),
      	(directory_count_start), (mime_list_start),
      	(filesystem_info_cancel), (filesystem_info_stop),
      	(filesystem_info_state_free), (got_filesystem_info),
      	(query_filesystem_info_callback), (filesystem_info_start),
      	(start_or_stop_io), (nautilus_directory_cancel),
      	(cancel_filesystem_info_for_file), (cancel_loading_attributes),
      	* libnautilus-private/nautilus-directory-private.h:
      	* libnautilus-private/nautilus-file-attributes.h: Add new
      	filesystem info attribute; right now two bits in NautilusFile's
      	private structure are set; the filesystem::use-preview and
      	* libnautilus-private/nautilus-file-operations.c:
      	* src/nautilus-places-sidebar.c: (open_selected_bookmark),
      	(mount_shortcut_cb): Don't inhibit automount from
      	nautilus_file_operations_mount_volume() because then everything
      	will be inhibited as the mount_added callback use it as
      	well. Rather, move the call to inhibit out to the proper call
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.c:
      	* libnautilus-private/nautilus-file.h:
      	* src/file-manager/fm-directory-view.c: (load_directory):
      	* src/file-manager/fm-icon-view.c: (should_preview_sound):
      	* src/nautilus-window-manage-views.c: (update_for_new_location):
      	Use the new filesystem::use-preview hint to determine if we should
      	preview non-native files (such as gphoto2:// and cdda://
      svn path=/trunk/; revision=13795
  27. 13 Feb, 2008 1 commit
    • Alexander Larsson's avatar
      Add nautilus_file_is_launcher() · 454b224e
      Alexander Larsson authored
      2008-02-13  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-file.[ch]:
              * libnautilus-private/nautilus-file-private.h:
      	Add nautilus_file_is_launcher()
              * libnautilus-private/nautilus-directory-async.c:
              * libnautilus-private/nautilus-dnd.c:
              * libnautilus-private/nautilus-link.[ch]
              * libnautilus-private/nautilus-mime-actions.c:
              * libnautilus-private/nautilus-program-choosing.[ch]:
              * src/file-manager/fm-directory-view.c:
              * src/file-manager/fm-tree-view.c:
      	Remove weird desktop-file: and command: hacks, and
      	replace with usage and implementation of
      	This fixes some problems where the old desktop-file uri
      	was interpreted as an actual file.
      svn path=/trunk/; revision=13734
  28. 17 Jan, 2008 1 commit
    • Alexander Larsson's avatar
      Add GMount attribute to NautilusFile. (not implemented yet) · dcd068fe
      Alexander Larsson authored
      2008-01-17  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-file.[ch]:
              * libnautilus-private/nautilus-file-attributes.h:
              * libnautilus-private/nautilus-file-private.h:
      	Add GMount attribute to NautilusFile.
      	(not implemented yet)
              * Makefile.am:
              * configure.in:
              * data/nautilus.xml.in:
              * libnautilus-private/apps_nautilus_preferences.schemas.in:
              * libnautilus-private/nautilus-autorun.[ch]:
              * libnautilus-private/nautilus-global-preferences.c:
              * libnautilus-private/nautilus-global-preferences.h:
              * libnautilus-private/nautilus-program-choosing.c:
              * src/Makefile.am:
              * src/file-manager/fm-directory-view.c:
              * src/nautilus-application.c:
              * src/nautilus-autorun-software.c: Added.
              * src/nautilus-file-management-properties.c:
              * src/nautilus-file-management-properties.glade:
              * src/nautilus-window-manage-views.c:
              * src/nautilus-x-content-bar.[ch]: Added.
      	More work on autorun and x-content types from David Zeuthen
      svn path=/trunk/; revision=13616
  29. 15 Jan, 2008 1 commit
    • Alexander Larsson's avatar
      Honor mtime specified in thumbnail (#504833) · 3354ae58
      Alexander Larsson authored
      2008-01-15  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-directory-async.c:
              * libnautilus-private/nautilus-file-private.h:
              * libnautilus-private/nautilus-file.c:
      	Honor mtime specified in thumbnail (#504833)
      svn path=/trunk/; revision=13606
  30. 20 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Missed one "std" in the conversion · a9985b93
      Alexander Larsson authored
      2007-12-20  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-file-private.h:
      	Missed one "std" in the conversion
      svn path=/trunk/; revision=13539
  31. 12 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Update to new gio attribute names · fd9cb7f3
      Alexander Larsson authored
      2007-12-12  Alexander Larsson  <alexl@redhat.com>
              * libnautilus-private/nautilus-file-private.h:
              * libnautilus-private/nautilus-file-utilities.c:
      	Update to new gio attribute names
      svn path=/trunk/; revision=13524
  32. 30 Nov, 2007 1 commit
  33. 18 Oct, 2006 1 commit
    • Alexander Larsson's avatar
      Add is_added flag to NautilusFile to make sure we always send an added · 72f44fb0
      Alexander Larsson authored
      2006-10-18  Alexander Larsson  <alexl@redhat.com>
      	* libnautilus-private/nautilus-file-private.h:
      	Add is_added flag to NautilusFile to make sure we always
      	send an added event to directory monitors.
      	* libnautilus-private/nautilus-directory-async.c:
      	Don't add the file to both added and changed list
      	If the file exist but hasn't been added yet, add it.
      	* libnautilus-private/nautilus-directory.c: (is_tentative):
      	Don't return non-added files for get_file_list to avoid duplicating
      	files if you do a list and then track adds.
      	Partially fixes #336051.
  34. 16 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Add selinux context column · 2f6ea575
      Alexander Larsson authored
      2006-06-16  Alexander Larsson  <alexl@redhat.com>
      	* libnautilus-private/nautilus-column-utilities.c:
      	Add selinux context column
      	* libnautilus-private/nautilus-directory-async.c:
      	* libnautilus-private/nautilus-file-private.h:
      	* libnautilus-private/nautilus-file.[ch]:
      	Get selinux context for all files.
      	Add nautilus_file_can_get_selinux_context and nautilus_file_get_selinux_context
      	Add selinux_context string attribute.
      	* src/file-manager/fm-properties-window.c:
      	Display selinux context in permissions page.