1. 25 Apr, 2016 1 commit
    • Carlos Soriano Sánchez's avatar
      general: merge libnautilus-private to src · 7e24f1b2
      Carlos Soriano Sánchez authored
      And fix make distcheck.
      Although libnautilus-private seem self contained, it was actually
      depending on the files on src/ for dnd.
      Not only that, but files in libnautilus-private also were depending on
      dnd files, which you can guess it's wrong.
      Before the desktop split, this was working because the files were
      distributed, but now was a problem since we reestructured the code, and
      now nautilus being a library make distcheck stop working.
      First solution was try to fix this inter dependency of files, but at
      some point I realized that there was no real point on splitting some of
      those files, because for example, is perfectly fine for dnd to need to
      access the window functions, and it's perfectly fine for the widgets
      in the private library to need to access to all dnd functions.
      So seems to me the private library of nautilus is somehow an artificial
      split, which provides more problems than solutions.
      We needed libnautilus-private to have a private library that we could
      isolate from extensions, but I don't think it worth given the problems
      it provides, and also, this not so good logical split.
      Right now, since with the desktop split we created a libnautilus to be
      used by the desktop part of nautilus, extensions have access to all
      the API of nautilus. We will think in future how this can be handled if
      we want.
      So for now, merge the libnautilus-private into src, and let's rethink
      a better logic to split the code and the private parts of nautilus than
      what we had.
      Thanks a lot to Rafael Fonseca for helping in get this done.
  2. 15 Apr, 2016 3 commits
  3. 04 Apr, 2016 1 commit
    • Carlos Soriano Sánchez's avatar
      general: remove vim modelines · 1ffb8ca5
      Carlos Soriano Sánchez authored
      Vim and emacs modelines are used to specify some of the code style in the code.
      However, this is misleading and poorly supported since nautilus had a mix of
      code style for some time.
      Also, the mode lines doesn't specify the whole code style, so we will need to
      use a different tool as well to specify the whole code style.
      For that, we can just use a different tool for everything.
      So remove the mode lines, and in a short future we will reestyle the nautilus
      code to have a single code style, and use a tool like editorconfig to specify
      the whole code style.
  4. 31 Jan, 2014 1 commit
  5. 25 May, 2012 1 commit
  6. 21 Apr, 2009 1 commit
    • Cosimo Cecchi's avatar
      Remove deprecated GDK/GTK+ symbols · b695c970
      Cosimo Cecchi authored
      Remove all uses of deprecated GDK and GTK+ symbols, replacing them
      with the currently supported equivalents.
      Based on a patch from Tal Benavidor (#565038).
  7. 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
  8. 14 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Only use <gio/gio.h> include · 6559286c
      Alexander Larsson authored
      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
  9. 11 Dec, 2007 1 commit
    • David Zeuthen's avatar
      Update for API changes in gio trunk. · 6b62b6df
      David Zeuthen authored
      2007-12-11  David Zeuthen  <davidz@redhat.com>
      	Update for API changes in gio trunk.
      	* libnautilus-private/nautilus-desktop-icon-file.c:
      	* 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),
      	* libnautilus-private/nautilus-desktop-link.c:
      	(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:
      	* src/file-manager/fm-icon-container.c: (get_sort_category):
      	* src/file-manager/fm-tree-model.c: (fm_tree_model_add_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),
      	* src/nautilus-application.c: (nautilus_application_instance_init),
      	(mount_added_callback), (mount_removed_callback):
      	* src/nautilus-pathbar.c:
      	(is_file_path_mounted_mount), (find_button_type),
      	* 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),
      svn path=/trunk/; revision=13520
  10. 30 Nov, 2007 1 commit
  11. 10 Dec, 2005 1 commit
    • Federico Mena Quintero's avatar
      Fixes bug #322957: · c5b2c29f
      Federico Mena Quintero authored
      2005-12-09  Federico Mena Quintero  <federico@ximian.com>
      	Fixes bug #322957:
      	Add a "Network Servers" icon on the desktop, which takes you to network:///
      	* libnautilus-private/nautilus-global-preferences.h
      	name.  This determines whether we show the "Network Servers" icon.
      	* libnautilus-private/apps_nautilus_preferences.schemas.in: Add a
      	schema for /apps/nautilus/desktop/network_visible; the default is true.
      	* libnautilus-private/nautilus-desktop-link.h
      	(NautilusDesktopLinkType): Add a NAUTILUS_DESKTOP_LINK_NETWORK type.
      	* libnautilus-private/nautilus-desktop-link.c
      	(nautilus_desktop_link_new): Support NAUTILUS_DESKTOP_LINK_NETWORK.
      	* libnautilus-private/nautilus-desktop-link-monitor.c
      	(NautilusDesktopLinkMonitorDetails): Added a network_link field.
      	(nautilus_desktop_link_monitor_delete_link): Don't delete
      	(update_link_visibility): New helper function.
      	(desktop_home_visible_changed): Use update_link_visibility(), to
      	avoid duplicated code.
      	(desktop_computer_visible_changed): Likewise.
      	(desktop_trash_visible_changed): Likewise.
      	(desktop_network_visible_changed): New function.
      	(create_link_and_add_preference): New helper function.
      	(nautilus_desktop_link_monitor_init): Use
      	create_link_and_add_preference() to avoid duplicated code.  Also,
      	create the network_link.
      	(desktop_link_monitor_finalize): Unref the network_link.
      	(remove_link_and_preference): New helper function.
      	(desktop_link_monitor_finalize): Use remove_link_and_preference()
      	to avoid duplicated code.  Also, free the network_link.
      	* src/file-manager/fm-icon-container.c (SortCategory): Add a
      	SORT_NETWORK_LINK category right before SORT_MOUNT_LINK, so that
      	the "Network Servers" icon appears before mounts.
      	(get_sort_category): Use SORT_NETWORK_LINK as the category for
  12. 06 Nov, 2003 1 commit
    • Alexander Larsson's avatar
      New desktop files · e162b7dc
      Alexander Larsson authored
      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:///
  13. 05 Nov, 2003 1 commit
    • Alexander Larsson's avatar
      Require new gnome-vfs · 3613a86b
      Alexander Larsson authored
      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
  14. 15 May, 2003 1 commit
    • Alexander Larsson's avatar
      Added new files. · 11958681
      Alexander Larsson authored
      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
      	* 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:
      	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.
      	Special case desktop uris.
      	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.
      	Special case desktop links
      	* libnautilus-private/nautilus-file-utilities.[ch]:
      	Change desktop dir to ~/Desktop
      	New function to return desktop dir as a uri.
      	* libnautilus-private/nautilus-file.c:
      	Handle creation of desktop icon files.
      	(nautilus_file_can_rename), (rename_guts),
      	Update for new special links.
      	Update for new desktop dir.
      	Fix uris for self owned files. This changed due to
      	the new canonicalization rules for foo:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	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:
      	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),
      	* 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:
      	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:
      	Don't loop forever if icon doesn't in the height of the container.