Re: [PATCH] Remove Open Terminal menu entry



Il giorno ven, 22/04/2005 alle 14.47 +0200, Luca Ferretti ha scritto:
> Here is a trivial patch to remove the Open Terminal entry from Desktop
> menu.

I forgot to remove the entry from nautilus-desktop-icon-view-ui.xml

Here is the correct patch 
diff -Naur /home/luca/Progetti/Programmi/cvs/GNOME_HEAD/nautilus/src/file-manager/fm-desktop-icon-view.c nautilus/src/file-manager/fm-desktop-icon-view.c
--- /home/luca/Progetti/Programmi/cvs/GNOME_HEAD/nautilus/src/file-manager/fm-desktop-icon-view.c	2005-04-24 09:54:04.000000000 +0200
+++ nautilus/src/file-manager/fm-desktop-icon-view.c	2005-04-24 10:44:22.946909960 +0200
@@ -590,14 +590,6 @@
 }
 
 static void
-action_new_terminal_callback (GtkAction *action, gpointer data)
-{
-        g_assert (FM_DIRECTORY_VIEW (data));
-
-	eel_gnome_open_terminal_on_screen (NULL, gtk_widget_get_screen (GTK_WIDGET (data)));
-}
-
-static void
 action_new_launcher_callback (GtkAction *action, gpointer data)
 {
 	char *desktop_directory;
@@ -694,22 +686,27 @@
 }
 
 static GtkActionEntry desktop_view_entries[] = {
-  { "New Terminal", NULL,                  /* name, stock id */
-    N_("Open T_erminal"), NULL,                /* label, accelerator */
-    N_("Open a new GNOME terminal window"),                   /* tooltip */ 
-    G_CALLBACK (action_new_terminal_callback) },
-  { "New Launcher Desktop", NULL,                  /* name, stock id */
-    N_("Create L_auncher..."), NULL,                /* label, accelerator */
-    N_("Create a new launcher"),                   /* tooltip */ 
-    G_CALLBACK (action_new_launcher_callback) },
-  { "Change Background", NULL,                  /* name, stock id */
-    N_("Change Desktop _Background"), NULL,                /* label, accelerator */
-    N_("Show a window that lets you set your desktop background's pattern or color"),                   /* tooltip */ 
-    G_CALLBACK (action_change_background_callback) },
-  { "Empty Trash Conditional", NULL,                  /* name, stock id */
-    N_("Empty Trash"), NULL,                /* label, accelerator */
-    N_("Delete all items in the Trash"),                   /* tooltip */ 
-    G_CALLBACK (action_empty_trash_conditional_callback) },
+	/* name, stock id */
+	{ "New Launcher Desktop", NULL,
+	  /* label, accelerator */
+	  N_("Create L_auncher..."), NULL,
+	  /* tooltip */
+	  N_("Create a new launcher"),
+	  G_CALLBACK (action_new_launcher_callback) },
+	/* name, stock id */
+	{ "Change Background", NULL,
+	  /* label, accelerator */
+	  N_("Change Desktop _Background"), NULL,
+	  /* tooltip */
+	  N_("Show a window that lets you set your desktop background's pattern or color"),
+	  G_CALLBACK (action_change_background_callback) },
+	/* name, stock id */
+	{ "Empty Trash Conditional", NULL,
+	  /* label, accelerator */
+	  N_("Empty Trash"), NULL,
+	  /* tooltip */
+	  N_("Delete all items in the Trash"),
+	  G_CALLBACK (action_empty_trash_conditional_callback) },
 };
 
 static void
diff -Naur /home/luca/Progetti/Programmi/cvs/GNOME_HEAD/nautilus/src/file-manager/nautilus-desktop-icon-view-ui.xml nautilus/src/file-manager/nautilus-desktop-icon-view-ui.xml
--- /home/luca/Progetti/Programmi/cvs/GNOME_HEAD/nautilus/src/file-manager/nautilus-desktop-icon-view-ui.xml	2004-11-23 16:40:32.000000000 +0100
+++ nautilus/src/file-manager/nautilus-desktop-icon-view-ui.xml	2005-04-24 10:45:08.728950032 +0200
@@ -2,7 +2,6 @@
 <popup name="background">
         <placeholder name="Before Zoom Items">
                 <placeholder name="New Window Items">
-                        <menuitem name="New Terminal" action="New Terminal"/>
                 </placeholder>
                 <placeholder name="New Object Items">
                         <menuitem name="New Launcher" action="New Launcher Desktop"/>


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