summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-desktop-icon-file.c
Commit message (Collapse)AuthorAgeFilesLines
* desktop-metadata: use a keyfile instead of GConf to store itCosimo Cecchi2011-01-311-2/+3
|
* all: silence new warnings from GCC 4.6Cosimo Cecchi2011-01-251-6/+0
| | | | | | GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly.
* Convert show-hidden-files to gsettings and merge it with show-backup-filesAlexander Larsson2010-07-231-1/+1
|
* Bug 587486 – Pass GMountOperation to unmount/eject/stop opsDavid Zeuthen2009-07-081-2/+10
| | | | | | | | | | | | | | | | - Port everything to use _with_operation() variants of unmount/eject methods - 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
* Support metadata for the virtual desktop iconsAlexander Larsson2009-06-291-0/+25
|
* Bug 518481 – URL shortcuts do not open query partAlexander Larsson2009-04-011-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: (update_info_from_link): * libnautilus-private/nautilus-directory-async.c: (lacks_mount): (link_info_done): * libnautilus-private/nautilus-search-directory-file.c: (nautilus_search_directory_file_init): 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: (nautilus_directory_notify_files_added_by_uri): (nautilus_directory_notify_files_changed_by_uri): (nautilus_directory_notify_files_removed_by_uri): (nautilus_directory_schedule_metadata_remove_by_uri): 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
* Fix up indentationAlexander Larsson2008-01-211-18/+18
| | | | | | | | | | | | | | | 2008-01-21 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: Fix up indentation * libnautilus-private/nautilus-file.c: Allow umount and eject for NautilusFiles that have a GMount. (e.g. unix mountpoints) svn path=/trunk/; revision=13626
* Implement reading the mount attribute (not used or tested yet)Alexander Larsson2008-01-171-1/+4
| | | | | | | | | | | | | | 2008-01-17 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-directory-private.h: * libnautilus-private/nautilus-file.c: Implement reading the mount attribute (not used or tested yet) svn path=/trunk/; revision=13617
* Add check_trash arg to nautilus_file_operations_unmount_mount. AddAlexander Larsson2008-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-14 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.[ch]: Add check_trash arg to nautilus_file_operations_unmount_mount. Add nautilus_file_operations_mount_volume(). * libnautilus-private/nautilus-desktop-icon-file.c: * src/nautilus-places-sidebar.c: * src/file-manager/fm-tree-view.c: Update to API change. * data/nautilus.xml.in: * libnautilus-private/Makefile.am: * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-autorun.[ch]: Added. * libnautilus-private/nautilus-global-preferences.[ch]: * src/nautilus-application.c: * src/nautilus-file-management-properties.c: * src/nautilus-file-management-properties.glade: Add new autorun setup (by David Zeuthen) svn path=/trunk/; revision=13594
* Remove unused callbacks in nautilus_file_unmount/eject. Patch from TomasAlexander Larsson2008-01-081-6/+2
| | | | | | | | | | | | | | 2008-01-08 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-file.[ch]: * libnautilus-private/nautilus-vfs-file.c: * src/file-manager/fm-directory-view.c: Remove unused callbacks in nautilus_file_unmount/eject. Patch from Tomas Bzatek <tbzatek@redhat.com> svn path=/trunk/; revision=13572
* Implement some missing mount/unmount functionallity. Patch from TomasAlexander Larsson2008-01-081-0/+40
| | | | | | | | | | | | | 2008-01-08 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-vfs-file.c: Implement some missing mount/unmount functionallity. Patch from Tomas Bzatek <tbzatek@redhat.com> svn path=/trunk/; revision=13571
* Pull in gio, not gnome-vfs.Alexander Larsson2008-01-041-1/+1
| | | | | | | | | | | | | | | | | | | 2008-01-04 Alexander Larsson <alexl@redhat.com> * libnautilus-extension/libnautilus-extension.pc.in: Pull in gio, not gnome-vfs. * libnautilus-extension/nautilus-file-info.[ch]: * libnautilus-private/nautilus-file.c: Export some gio specific things like file type and location/parent location. * libnautilus-private/nautilus-desktop-icon-file.c: These are G_FILE_TYPE_SHORTCUT files, not REGULAR files. svn path=/trunk/; revision=13560
* Update for API changes in gio trunk.David Zeuthen2007-12-171-10/+1
| | | | | | | | | | | | | | | | | | | | | 2007-12-14 David Zeuthen <davidz@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: (update_info_from_link): * libnautilus-private/nautilus-desktop-link-monitor.c: (volume_delete_dialog): * src/file-manager/fm-tree-view.c: (button_pressed_callback), (fm_tree_view_unmount_cb): * src/nautilus-pathbar.c: (nautilus_path_bar_class_init): * src/nautilus-places-sidebar.c: (check_visibility), (volume_mount_cb), (open_selected_bookmark), (mount_shortcut_cb), (drive_eject_cb), (volume_eject_cb), (mount_eject_cb), (eject_shortcut_cb): Update for API changes in gio trunk. svn path=/trunk/; revision=13532
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-bookmark.c: * libnautilus-private/nautilus-bookmark.h: * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.c: * libnautilus-private/nautilus-desktop-link.h: * libnautilus-private/nautilus-directory-private.h: * libnautilus-private/nautilus-directory.h: * libnautilus-private/nautilus-emblem-utils.h: * libnautilus-private/nautilus-file-changes-queue.h: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-file-utilities.c: * libnautilus-private/nautilus-file-utilities.h: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-file.h: * libnautilus-private/nautilus-icon-info.c: * libnautilus-private/nautilus-icon-info.h: * libnautilus-private/nautilus-link.c: * libnautilus-private/nautilus-mime-actions.h: * libnautilus-private/nautilus-mime-application-chooser.c: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-monitor.h: * libnautilus-private/nautilus-open-with-dialog.c: * libnautilus-private/nautilus-open-with-dialog.h: * libnautilus-private/nautilus-program-choosing.c: * libnautilus-private/nautilus-program-choosing.h: * libnautilus-private/nautilus-progress-info.h: * libnautilus-private/nautilus-recent.h: * libnautilus-private/nautilus-search-directory.c: * libnautilus-private/nautilus-search-engine-simple.c: * libnautilus-private/nautilus-trash-monitor.c: * libnautilus-private/nautilus-trash-monitor.h: * libnautilus-private/nautilus-ui-utilities.c: * libnautilus-private/nautilus-view-factory.h: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-container.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-tree-model.h: * src/file-manager/fm-tree-view.c: * src/nautilus-application.c: * src/nautilus-application.h: * src/nautilus-bookmark-list.c: * src/nautilus-bookmark-list.h: * src/nautilus-desktop-window.c: * src/nautilus-image-properties-page.c: * src/nautilus-location-entry.c: * src/nautilus-navigation-window.c: * src/nautilus-pathbar.c: * src/nautilus-pathbar.h: * src/nautilus-places-sidebar.c: * src/nautilus-property-browser.c: * src/nautilus-query-editor.c: * src/nautilus-window-menus.c: Only use <gio/gio.h> include svn path=/trunk/; revision=13529
* Update for API changes in gio trunk.David Zeuthen2007-12-111-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-11 David Zeuthen <davidz@redhat.com> Update for API changes in gio trunk. * libnautilus-private/nautilus-desktop-icon-file.c: (update_info_from_link): * libnautilus-private/nautilus-desktop-link-monitor.c: (volume_delete_dialog), (volume_file_name_used), (create_mount_link), (mount_added_callback), (mount_removed_callback), (mount_changed_callback), (desktop_volumes_visible_changed), (nautilus_desktop_link_monitor_init), (desktop_link_monitor_finalize): * libnautilus-private/nautilus-desktop-link.c: (nautilus_desktop_link_new), (nautilus_desktop_link_new_from_mount), (nautilus_desktop_link_get_mount), (desktop_link_finalize): * libnautilus-private/nautilus-desktop-link.h: * libnautilus-private/nautilus-file-operations.c: (custom_mount_to_string), (custom_mount_skip), (unmount_mount_callback), (do_unmount), (get_trash_dirs_for_mount), (has_trash_files), (nautilus_file_operations_unmount_mount): * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-file.c: (nautilus_file_get_volume_name): * src/file-manager/fm-icon-container.c: (get_sort_category): * src/file-manager/fm-tree-model.c: (fm_tree_model_add_root_uri), (fm_tree_model_get_mount_for_root_node_file), (fm_tree_model_remove_root_uri): * src/file-manager/fm-tree-model.h: * src/file-manager/fm-tree-view.c: (add_root_for_mount), (mount_added_callback), (mount_removed_callback), (button_pressed_callback), (fm_tree_view_unmount_cb), (create_tree): * src/nautilus-application.c: (nautilus_application_instance_init), (mount_added_callback), (mount_removed_callback): * src/nautilus-pathbar.c: (nautilus_path_bar_update_button_appearance), (is_file_path_mounted_mount), (find_button_type), (make_directory_button): * src/nautilus-places-sidebar.c: (add_place), (update_places), (mount_added_callback), (mount_removed_callback), (mount_changed_callback), (volume_added_callback), (volume_removed_callback), (volume_changed_callback), (drive_changed_callback), (bookmarks_popup_menu_detach_cb), (check_visibility), (bookmarks_check_popup_sensitivity), (volume_mount_cb), (open_selected_bookmark), (mount_shortcut_cb), (unmount_shortcut_cb), (eject_shortcut_cb), (drive_poll_for_media_cb), (rescan_shortcut_cb), (bookmarks_build_popup_menu), (nautilus_places_sidebar_init), (nautilus_places_sidebar_set_parent_window): svn path=/trunk/; revision=13520
* Merge gio-branchAlexander Larsson2007-11-301-87/+48
| | | | svn path=/trunk/; revision=13464
* Fix crasher (#403565) Patch from Padraig O'BriainAlexander Larsson2007-02-021-1/+4
| | | | | | | | | | | | 2007-02-02 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: Fix crasher (#403565) Patch from Padraig O'Briain svn path=/trunk/; revision=12715
* Use gi18n.h instead of deprecated gnome-i18n.h header.Martin Wehner2006-03-181-1/+1
| | | | | | | | | | | | | | | | | | 2006-03-18 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/*.c: * src/file-manager/*.c: * src/*.c: Use gi18n.h instead of deprecated gnome-i18n.h header. * libnautilus-private/nautilus-query.c: (nautilus_query_to_readable_string): Mark string for translation. * po/POTFILES.in: Add nautilus-query.c Patch from Wouter Bolsterlee <uws+gnome@xs4all.nl>
* Use GNOME_VFS_FILE_INFO_FIELDS_ACCESS to calculate permissions.Alexander Larsson2005-12-121-1/+4
| | | | | | | | | | | | | | | 2005-12-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-file.c: Use GNOME_VFS_FILE_INFO_FIELDS_ACCESS to calculate permissions. Patch from Christian Neumair and Christian Kellner * configure.in: Require latest gnome-vfs for GNOME_VFS_FILE_INFO_FIELDS_IDS.
* Handle nautilus_desktop_icon_file_get_link() returning NULL. Likely fixesAlexander Larsson2005-02-221-0/+2
| | | | | | | | | | | | | | | | | 2005-02-22 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-file-operations.c: (nautilus_file_operations_delete): * libnautilus-private/nautilus-file.c: (nautilus_file_can_rename), (rename_guts), (nautilus_file_get_drop_target_uri): * src/file-manager/fm-desktop-icon-view.c: (trash_link_is_selection): * src/file-manager/fm-icon-container.c: (get_sort_category): * src/file-manager/fm-properties-window.c: (get_target_file_for_original_file): Handle nautilus_desktop_icon_file_get_link() returning NULL. Likely fixes bug #145971
* Provide group write permissions by default. Prevents read-only emblem fromMartin Wehner2004-05-181-0/+1
| | | | | | | | 2004-05-18 Martin Wehner <martin.wehner@epost.de> * libnautilus-private/nautilus-desktop-icon-file.c (update_info_from_link): Provide group write permissions by default. Prevents read-only emblem from being shown when user is in root group (#141390).
* New desktop filesAlexander Larsson2003-11-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-06 Alexander Larsson <alexl@redhat.com> * Makefile.am: * nautilus-computer.desktop.in: * nautilus-home.desktop.in: New desktop files * nautilus.desktop.in: Make this one "browse filesystem" * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.c: * libnautilus-private/nautilus-global-preferences.h: computer desktop icon prefs * libnautilus-private/nautilus-desktop-icon-file.c: (update_info_from_link): Set permissions too * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.[ch]: Add computer icon * src/Makefile.am: * src/nautilus-connect-server-dialog.[ch]: Connect server dialog * src/file-manager/fm-directory-view.c: Mount drives on activation. * src/file-manager/fm-icon-container.c: Sort computer first * src/file-manager/fm-properties-window.c: Put back NautilusDesktopLink handling for e.g. computer and home. * src/nautilus-application.[ch]: Reload dirs on mounts. add browser_window argument on open window * src/nautilus-main.c: add browser_window argument on open window (--browser) hack to register computer icon * src/nautilus-shell-interface.idl: * src/nautilus-shell.c: add browser_window argument on open window * src/nautilus-navigation-window-ui.xml: * src/nautilus-spatial-window-ui.xml: * src/nautilus-window-menus.c: Add connect to server Add computer * src/nautilus-window.c: Nice title for burn:///
* Require new gnome-vfsAlexander Larsson2003-11-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-05 Alexander Larsson <alexl@redhat.com> * configure.in: Require new gnome-vfs * components/tree/nautilus-tree-view.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.[ch]: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-trash-directory.c: * libnautilus-private/nautilus-trash-monitor.[ch]: * src/nautilus-application.c: Use gnome-vfs-volume-manager instead of nautilus-volume-manager.c * libnautilus-private/nautilus-desktop-icon-file.c: Set the volume on the nautilusfile * libnautilus-private/nautilus-directory-async.c: Load volume info from link * libnautilus-private/nautilus-file-attributes.h: * libnautilus-private/nautilus-mime-actions.c: Add new VOLUMES attribute * libnautilus-private/nautilus-file-private.h: Add has_volume and has_drive to NautilusFile * libnautilus-private/nautilus-file.[ch]: Add has_volume and has_drive to NautilusFile Volumes/drives are sorted separately * libnautilus-private/nautilus-link-desktop-file.[ch]: * libnautilus-private/nautilus-link.[ch]: Read drive and volume id from links * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/nautilus-desktop-icon-view-ui.xml: Remove volume ops. Remove disks menu * src/file-manager/fm-directory-view.c: * src/file-manager/nautilus-directory-view-ui.xml: Implement volume ops using gnome-vfs * src/file-manager/fm-properties-window.c: Handle drives/volumes * src/nautilus-window.c: Make a nicer title for some specific locations * libnautilus-private/nautilus-volume-monitor.[ch]: * libnautilus-private/Makefile.am remove this old crap
* Don't ref directory twice. Rename finalizer.Alexander Larsson2003-05-231-3/+2
| | | | | | | | | | | | | | 2003-05-23 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: Don't ref directory twice. Rename finalizer. * libnautilus-private/nautilus-desktop-link-monitor.c: unref monitor on shutdown Unref correct object in finalize * libnautilus-private/nautilus-desktop-link.c: unref icon file in finalizer.
* Added new files.Alexander Larsson2003-05-151-0/+344
2003-05-15 Alexander Larsson <alexl@redhat.com> * libnautilus-private/Makefile.am: Added new files. * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.[ch]: New prefs for home and trash links. * libnautilus-private/nautilus-desktop-directory.[ch]: New files. Implements the NautilusDesktop object for the virtual x-nautilus-desktop: uri. The directory merges the contents of the directory with the real desktop directory. * libnautilus-private/nautilus-desktop-directory-file.[ch]: New files. Implements the Nautilusfile corresponding to NautilusDestkopDirectory. * libnautilus-private/nautilus-desktop-icon-file.[ch]: New files. Implement NautilusFile for a virtual file in a NautilusDesktopDirectory. Gets all the actual file data from a NautilusDesktopLink. * libnautilus-private/nautilus-desktop-link-monitor.[ch]: New files. Keep track of home and trash visibility prefs and mounted volumes and create/destroy corresponding NautilusDesktopLink object. * libnautilus-private/nautilus-desktop-link.[ch]: New files. Keeps track of all the real information in a desktop icon link. These are home, trash and volume links at the moment. * libnautilus-private/nautilus-directory-async.c: Indentation correction. * libnautilus-private/nautilus-directory.c: (nautilus_directory_new): Create NautilusDesktopDirectory objects for x-nautilus-desktop: uris * libnautilus-private/nautilus-dnd.c: (nautilus_drag_items_local): Handle NULL GnomeVFSURIs. (nautilus_drag_items_on_desktop): New function to check if items are on the desktop. (nautilus_drag_default_drop_action_for_icons): Special case desktop uris. (nautilus_drag_selection_includes_special_link): Convert from old-style special links to current. * libnautilus-private/nautilus-dnd.h: New function nautilus_drag_items_on_desktop. * libnautilus-private/nautilus-file-operations.c: (is_special_link), (nautilus_file_operations_copy_move): Convert from old-style special links to current. (nautilus_file_operations_delete): Special case desktop links * libnautilus-private/nautilus-file-utilities.[ch]: (nautilus_get_desktop_directory): (nautilus_get_gmc_desktop_directory): Change desktop dir to ~/Desktop (nautilus_get_desktop_directory_uri): New function to return desktop dir as a uri. * libnautilus-private/nautilus-file.c: (nautilus_file_new_from_relative_uri), (nautilus_file_get_internal): Handle creation of desktop icon files. (nautilus_file_can_rename), (rename_guts), (nautilus_file_get_drop_target_uri): Update for new special links. (nautilus_file_is_in_desktop): Update for new desktop dir. (nautilus_file_get_uri): Fix uris for self owned files. This changed due to the new canonicalization rules for foo: * libnautilus-private/nautilus-icon-dnd.c: (nautilus_icon_container_selection_items_local), (handle_nonlocal_move): Handle desktop uri. * src/Nautilus_shell.server.in: icon view handles x-nautilus-desktop: uris * src/nautilus-application.c: (finish_startup): Initialize the desktop link monitor * src/nautilus-desktop-window.c: (nautilus_desktop_window_update_directory): Show x-nautilus-desktop: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_finalize), (fm_desktop_icon_view_init), (volume_ops_callback), (trash_link_is_selection), (volume_link_is_selection), (volume_link_device_type), (real_supports_zooming): * src/file-manager/fm-directory-view.c: Remove lots of old support for desktop icon. Reimplement some of it with the new desktop icon support. * src/file-manager/fm-directory-view.h: New function fm_directory_view_get_backing_uri * src/file-manager/fm-icon-container.c: (fm_icon_container_get_icon_text): Don't show extra text for desktop icons (get_sort_category): Update for new desktop icons * src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list): Use get_backing_uri() * src/file-manager/fm-properties-window.c: (get_target_file): Use the new desktop icon support. * libnautilus-private/nautilus-icon-container.c: (lay_down_icons_tblr): Don't loop forever if icon doesn't in the height of the container.