patch for bug 134420



I wouldn't be surprised if I have made mistakes as it is my first time
looking at nautilus code.
I was inspired to do some bug fixing from Alex's mail.

I have attached a patch for bug 134420
http://bugzilla.gnome.org/show_bug.cgi?id=134420

The patch simply empties the clipboard so the paste menu item will
become inactive. The patch is also attached in bugzilla.


Thanks


Glenn Pierce

? patch
Index: fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.636
diff -p -u -r1.636 fm-directory-view.c
--- fm-directory-view.c	17 Sep 2004 08:07:56 -0000	1.636
+++ fm-directory-view.c	25 Sep 2004 10:44:50 -0000
@@ -5174,6 +5174,11 @@ paste_clipboard_data (FMDirectoryView *v
 						   cut ? GDK_ACTION_MOVE : GDK_ACTION_COPY,
 						   0, 0,
 						   view);
+
+    /* If items are cut then remove from clipboard */
+    if (cut) {
+        gtk_clipboard_clear (get_clipboard(view));
+    }
 	}
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]