]> git.pld-linux.org Git - packages/nautilus.git/commitdiff
- obsolete
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 27 Sep 2008 14:51:00 +0000 (14:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nautilus-capplet.patch -> 1.5
    nautilus-dnd-user-owned.patch -> 1.2

nautilus-capplet.patch [deleted file]
nautilus-dnd-user-owned.patch [deleted file]

diff --git a/nautilus-capplet.patch b/nautilus-capplet.patch
deleted file mode 100644 (file)
index 315afb5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN nautilus-2.17.92/nautilus-file-management-properties.desktop.in.in nautilus-2.17.92.new/nautilus-file-management-properties.desktop.in.in
---- nautilus-2.17.92/nautilus-file-management-properties.desktop.in.in 2007-01-31 11:17:55.000000000 +0100
-+++ nautilus-2.17.92.new/nautilus-file-management-properties.desktop.in.in     2007-03-02 23:49:19.000000000 +0100
-@@ -7,7 +7,7 @@
- Terminal=false
- Type=Application
- StartupNotify=true
--Categories=GNOME;GTK;Settings;X-GNOME-PersonalSettings;
-+Categories=GNOME;GTK;Settings;X-GNOME-PersonalSettings;X-Capplet;
- OnlyShowIn=GNOME;
- X-GNOME-Bugzilla-Bugzilla=GNOME
- X-GNOME-Bugzilla-Product=nautilus
diff --git a/nautilus-dnd-user-owned.patch b/nautilus-dnd-user-owned.patch
deleted file mode 100644 (file)
index 3d01ca6..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-Index: libnautilus-private/nautilus-dnd.c
-===================================================================
-RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-dnd.c,v
-retrieving revision 1.24
-diff -u -p -r1.24 nautilus-dnd.c
---- libnautilus-private/nautilus-dnd.c 18 Mar 2006 07:13:49 -0000      1.24
-+++ libnautilus-private/nautilus-dnd.c 20 Apr 2006 11:19:18 -0000
-@@ -302,6 +302,26 @@ nautilus_drag_default_drop_action_for_ur
-       return context->suggested_action;
- }
-+static gboolean
-+uri_is_user_owned (GnomeVFSURI *uri)
-+{
-+      gboolean user_owned;
-+
-+      user_owned = FALSE;
-+
-+      if (uri != NULL && !strcmp (gnome_vfs_uri_get_scheme (uri), "file")) {
-+              GnomeVFSFileInfo *info;
-+
-+              info = gnome_vfs_file_info_new ();
-+              if (gnome_vfs_get_file_info_uri (uri, info, GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS) == GNOME_VFS_OK) {
-+                      user_owned = (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_IDS) &&
-+                                   geteuid () == info->uid;
-+              }
-+              gnome_vfs_file_info_unref (info);
-+      }
-+
-+      return user_owned;
-+}
- void
- nautilus_drag_default_drop_action_for_icons (GdkDragContext *context,
-@@ -385,11 +405,12 @@ nautilus_drag_default_drop_action_for_ic
-       if (dropped_uri != NULL) {
-               gnome_vfs_check_same_fs_uris (dropped_uri, target_uri, &same_fs);
-               target_is_source_parent = gnome_vfs_uri_is_parent (target_uri, dropped_uri, FALSE);
--              gnome_vfs_uri_unref (dropped_uri);
-       }
--      gnome_vfs_uri_unref (target_uri);
--      
--      if (same_fs || target_is_source_parent) {
-+
-+      if ((same_fs || target_is_source_parent) &&
-+          /* use copy by default when dragging from user-owned location
-+           * to location owned by somebody else */
-+          !(uri_is_user_owned (dropped_uri) && !uri_is_user_owned (target_uri))) {
-               if (actions & GDK_ACTION_MOVE) {
-                       *action = GDK_ACTION_MOVE;
-               } else {
-@@ -402,6 +423,15 @@ nautilus_drag_default_drop_action_for_ic
-                       *action = context->suggested_action;
-               }
-       }
-+
-+      if (dropped_uri != NULL) {
-+              gnome_vfs_uri_unref (dropped_uri);
-+      }
-+
-+      if (target_uri != NULL) {
-+              gnome_vfs_uri_unref (target_uri);
-+      }
-+      
- }
- /* Encode a "x-special/gnome-icon-list" selection.
This page took 0.195246 seconds and 4 git commands to generate.