Commit 4d731531 authored by Luca Ferretti's avatar Luca Ferretti Committed by Luca Ferretti

Add NAUTILUS_ACTION_HOME for Go->Home Folder

2006-12-15  Luca Ferretti  <elle.uca@libero.it>

	* src/nautilus-actions.h:

	Add NAUTILUS_ACTION_HOME for Go->Home Folder

	* src/nautilus-navigation-window-menus.c:
	(nautilus_navigation_window_initialize_actions),
	(nautilus_navigation_window_initialize_menus):
	* src/nautilus-spatial-window.c:
	* src/nautilus-window-menus.c: (nautilus_window_initialize_menus):

	Define short_label for NAUTILUS_ACTION_HOME and
	NAUTILUS_ACTION_SEARCH, to use on toolbar. Also fix capitalization
	in search menu entry.
parent 5a981b24
2006-12-15 Luca Ferretti <elle.uca@libero.it>
* src/nautilus-actions.h:
Add NAUTILUS_ACTION_HOME for Go->Home Folder
* src/nautilus-navigation-window-menus.c:
(nautilus_navigation_window_initialize_actions),
(nautilus_navigation_window_initialize_menus):
* src/nautilus-spatial-window.c:
* src/nautilus-window-menus.c: (nautilus_window_initialize_menus):
Define short_label for NAUTILUS_ACTION_HOME and
NAUTILUS_ACTION_SEARCH, to use on toolbar. Also fix capitalization
in search menu entry.
2006-12-13 Luca Ferretti <elle.uca@libero.it>
* nautilus-computer.desktop.in.in:
......
......@@ -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"
......
......@@ -443,7 +443,7 @@ static const GtkActionEntry navigation_entries[] = {
{ "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 @@ nautilus_navigation_window_initialize_actions (NautilusNavigationWindow *window)
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 @@ nautilus_navigation_window_initialize_menus (NautilusNavigationWindow *window)
{
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");
......
......@@ -874,7 +874,7 @@ static const GtkActionEntry spatial_entries[] = {
{ "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) },
};
......
......@@ -701,7 +701,10 @@ nautilus_window_initialize_menus (NautilusWindow *window)
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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment