nemo r48 - in trunk: . gtk gtk-gui



Author: arj
Date: Mon Jan  7 12:25:23 2008
New Revision: 48
URL: http://svn.gnome.org/viewvc/nemo?rev=48&view=rev

Log:
Add copy to clipboard



Modified:
   trunk/NEWS
   trunk/gtk-gui/MainWindow.cs
   trunk/gtk/Common.cs

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Jan  7 12:25:23 2008
@@ -5,6 +5,7 @@
 - Support Beagle through the Xesam adaptor
 - Add indexing dialog
 - Add open directory to right click menu for file
+- Add copy to clipboard to right click menu for file
 
 Bugfixes:
 - Fix indexing so it doesn't kill the machine

Modified: trunk/gtk-gui/MainWindow.cs
==============================================================================
--- trunk/gtk-gui/MainWindow.cs	(original)
+++ trunk/gtk-gui/MainWindow.cs	Mon Jan  7 12:25:23 2008
@@ -237,14 +237,14 @@
         this.prev_button.UseUnderline = true;
         // Container child prev_button.Gtk.Container+ContainerChild
         Gtk.Alignment w22 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
-        // Container child GtkAlignment1.Gtk.Container+ContainerChild
+        // Container child GtkAlignment.Gtk.Container+ContainerChild
         Gtk.HBox w23 = new Gtk.HBox();
         w23.Spacing = 2;
-        // Container child GtkHBox1.Gtk.Container+ContainerChild
+        // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Image w24 = new Gtk.Image();
         w24.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16);
         w23.Add(w24);
-        // Container child GtkHBox1.Gtk.Container+ContainerChild
+        // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Label w26 = new Gtk.Label();
         w26.LabelProp = "";
         w23.Add(w26);
@@ -262,14 +262,14 @@
         this.next_button.UseUnderline = true;
         // Container child next_button.Gtk.Container+ContainerChild
         Gtk.Alignment w31 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
-        // Container child GtkAlignment2.Gtk.Container+ContainerChild
+        // Container child GtkAlignment.Gtk.Container+ContainerChild
         Gtk.HBox w32 = new Gtk.HBox();
         w32.Spacing = 2;
-        // Container child GtkHBox2.Gtk.Container+ContainerChild
+        // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Image w33 = new Gtk.Image();
         w33.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-forward", Gtk.IconSize.Menu, 16);
         w32.Add(w33);
-        // Container child GtkHBox2.Gtk.Container+ContainerChild
+        // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Label w35 = new Gtk.Label();
         w35.LabelProp = "";
         w32.Add(w35);

Modified: trunk/gtk/Common.cs
==============================================================================
--- trunk/gtk/Common.cs	(original)
+++ trunk/gtk/Common.cs	Mon Jan  7 12:25:23 2008
@@ -84,7 +84,7 @@
 
 				popup_menu.Add(open_with_item);
 
-				MenuItem open_folder = new MenuItem(Mono.Unix.Catalog.GetString("Open directory"));
+				MenuItem open_folder = new MenuItem(Mono.Unix.Catalog.GetString("Open parent directory"));
 				open_folder.Activated += delegate { 
 					string path = item.path;
 					int index = -1;
@@ -97,6 +97,15 @@
 				};
 				popup_menu.Add(open_folder);
 
+				MenuItem clipboard_item = new MenuItem(Mono.Unix.Catalog.GetString("Copy path to clipboard"));
+				clipboard_item.Activated += delegate {
+					Gtk.Clipboard clipboard_x = Gtk.Clipboard.Get(Gdk.Atom.Intern("PRIMARY", true));
+					clipboard_x.Text = item.path;
+					Gtk.Clipboard clipboard = Gtk.Clipboard.Get(Gdk.Atom.Intern("CLIPBOARD", true));
+					clipboard.Text = item.path;
+				};
+				popup_menu.Add(clipboard_item);
+
 				MenuItem labels_item = new MenuItem(Mono.Unix.Catalog.GetString("Labels"));
 				Menu categories_menu = new Menu();
 



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