Re: Change descriptions of nautilus related items in Places menu on panel



Il giorno mer, 13/12/2006 alle 10.08 +0100, Luca Ferretti ha scritto:

> But now the $HOME and find:// buttons on Nautilus browser windows
> toolbars are using "Home Folder" and "Search for files..." labels :-(
> I'll provide to apply the same "hack" used in Epiphany to have a shorter
> label for Zoom In and Zoom Out buttons on toolbar.

I've just uploaded the attached patch to fix this, plus wrong
capitalization (Search for files --> Search for Files).
? nautilus-computer.desktop.in
? nautilus-file-management-properties.desktop.in
? nautilus-folder-handler.desktop.in
? nautilus-home.desktop.in
? nautilus.desktop.in
? cut-n-paste-code/gsequence/.deps
? cut-n-paste-code/gsequence/.libs
? cut-n-paste-code/gsequence/gsequence.lo
? cut-n-paste-code/gsequence/libgsequence.la
? cut-n-paste-code/libegg/.deps
? cut-n-paste-code/libegg/.libs
? cut-n-paste-code/libegg/eggtreemultidnd.lo
? cut-n-paste-code/libegg/libegg.la
? libbackground/.deps
? libbackground/.libs
? libbackground/applier.lo
? libbackground/libbackground.la
? libbackground/preferences.lo
? po/.intltool-merge-cache
Index: src/nautilus-actions.h
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-actions.h,v
retrieving revision 1.5
diff -n -u -r1.5 nautilus-actions.h
--- src/nautilus-actions.h	12 Dec 2005 16:59:11 -0000	1.5
+++ src/nautilus-actions.h	15 Dec 2006 08:52:42 -0000
@@ -38,6 +38,7 @@
 #define NAUTILUS_ACTION_SHOW_HIDE_STATUSBAR "Show Hide Statusbar"
 #define NAUTILUS_ACTION_SHOW_HIDE_LOCATION_BAR "Show Hide Location Bar"
 #define NAUTILUS_ACTION_GO_TO_BURN_CD "Go to Burn CD"
+#define NAUTILUS_ACTION_HOME "Home"
 #define NAUTILUS_ACTION_ZOOM_IN "Zoom In"
 #define NAUTILUS_ACTION_ZOOM_OUT "Zoom Out"
 #define NAUTILUS_ACTION_ZOOM_NORMAL "Zoom Normal"
Index: src/nautilus-navigation-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-navigation-window-menus.c,v
retrieving revision 1.286
diff -n -u -r1.286 nautilus-navigation-window-menus.c
--- src/nautilus-navigation-window-menus.c	13 Dec 2006 08:57:48 -0000	1.286
+++ src/nautilus-navigation-window-menus.c	15 Dec 2006 08:52:42 -0000
@@ -443,7 +443,7 @@
   { "Edit Bookmarks", NULL, N_("_Edit Bookmarks"), /* name, stock id, label */
     "<control>b", N_("Display a window that allows editing the bookmarks in this menu"),
     G_CALLBACK (action_edit_bookmarks_callback) },
-  { "Search", "gtk-find", N_("_Search for files..."), /* name, stock id, label */
+  { "Search", "gtk-find", N_("_Search for Files..."), /* name, stock id, label */
     "<control>F", N_("Locate documents and folders on this computer by name or content"),
     G_CALLBACK (action_search_callback) },
 		     
@@ -521,8 +521,12 @@
 	gtk_action_group_add_action_with_accel (action_group,
 						action,
 						"<alt>Right");
+
 	g_object_unref (action);
 
+	action = gtk_action_group_get_action (action_group, NAUTILUS_ACTION_SEARCH);
+	g_object_set (action, "short_label", _("_Search"), NULL);
+
 	ui_manager = nautilus_window_get_ui_manager (NAUTILUS_WINDOW (window));
 
 	gtk_ui_manager_insert_action_group (ui_manager, action_group, 0);
@@ -541,7 +545,7 @@
 {
 	GtkUIManager *ui_manager;
 	const char *ui;
-	
+
 	ui_manager = nautilus_window_get_ui_manager (NAUTILUS_WINDOW (window));
 
 	ui = nautilus_ui_string_get ("nautilus-navigation-window-ui.xml");
Index: src/nautilus-spatial-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-spatial-window.c,v
retrieving revision 1.464
diff -n -u -r1.464 nautilus-spatial-window.c
--- src/nautilus-spatial-window.c	13 Dec 2006 08:57:49 -0000	1.464
+++ src/nautilus-spatial-window.c	15 Dec 2006 08:52:43 -0000
@@ -874,7 +874,7 @@
   { "Edit Bookmarks", NULL, N_("_Edit Bookmarks"), /* name, stock id, label */
     "<control>b", N_("Display a window that allows editing the bookmarks in this menu"),
     G_CALLBACK (action_edit_bookmarks_callback) },
-  { "Search", "gtk-find", N_("_Search for files..."), /* name, stock id, label */
+  { "Search", "gtk-find", N_("_Search for Files..."), /* name, stock id, label */
     "<control>F", N_("Locate documents and folders on this computer by name or content"),
     G_CALLBACK (action_search_callback) },
 };
Index: src/nautilus-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-menus.c,v
retrieving revision 1.302
diff -n -u -r1.302 nautilus-window-menus.c
--- src/nautilus-window-menus.c	13 Dec 2006 08:57:49 -0000	1.302
+++ src/nautilus-window-menus.c	15 Dec 2006 08:52:44 -0000
@@ -701,7 +701,10 @@
 
 	action = gtk_action_group_get_action (action_group, NAUTILUS_ACTION_UP);
 	g_object_set (action, "short_label", _("_Up"), NULL);
-	
+
+	action = gtk_action_group_get_action (action_group, NAUTILUS_ACTION_HOME);
+	g_object_set (action, "short_label", _("_Home"), NULL);
+
 	window->details->ui_manager = gtk_ui_manager_new ();
 	ui_manager = window->details->ui_manager;
 	gtk_window_add_accel_group (GTK_WINDOW (window),


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