aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-toolbar.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@mail.utexas.edu>2005-10-22 00:15:10 +0800
committerPhilip Langdale <philipl@src.gnome.org>2005-10-22 00:15:10 +0800
commite5bda8ab43ca8f63376714a00dea3228ada16a9e (patch)
tree2bba75a47a2a10cded18cc6785177133eb9f2a92 /src/ephy-toolbar.c
parent8e4b79936d79e1fb33947fbfbea1f69141488790 (diff)
downloadgsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar.gz
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar.bz2
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar.lz
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar.xz
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.tar.zst
gsoc2013-epiphany-e5bda8ab43ca8f63376714a00dea3228ada16a9e.zip
Point main menu UI at toolbar actions. Don't try and change the state of
2005-10-21 Philip Langdale <philipl@mail.utexas.edu> * data/ui/epiphany-ui.xml: Point main menu UI at toolbar actions. * src/ephy-lockdown.c: (update_window): Don't try and change the state of the now non-existent menu specific actions. * src/ephy-toolbar.c (ephy_toolbar_set_window): Sync up toolbar actions so that they will appear in menus to be identical to the old menu specific actions. This just means adding accelerators and shortcuts and adjusting tooltip text. * src/ephy-window.c (sync_tab_navigation): Remove the menu specific actions and consequently, don't try to manipulate them. * src/window-commands.c * src/window-commands.h: (window_cmd_go_up): Remove unused callback.
Diffstat (limited to 'src/ephy-toolbar.c')
-rwxr-xr-xsrc/ephy-toolbar.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 3b40c0b9c..6cf7f9fcb 100755
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -248,9 +248,9 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
action = priv->actions[BACK_ACTION] =
g_object_new (EPHY_TYPE_NAVIGATION_ACTION,
"name", "NavigationBack",
- "label", _("Back"),
+ "label", _("_Back"),
"stock_id", GTK_STOCK_GO_BACK,
- "tooltip", _("Go back"),
+ "tooltip", _("Go to the previous visited page"),
/* this is the tooltip on the Back button's drop-down arrow, which will show
* a menu with all sites you can go 'back' to
*/
@@ -261,15 +261,16 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
NULL);
g_signal_connect_swapped (action, "open-link",
G_CALLBACK (ephy_link_open), toolbar);
- gtk_action_group_add_action (priv->action_group, action);
+ gtk_action_group_add_action_with_accel (priv->action_group, action,
+ "<alt>Left");
g_object_unref (action);
action = priv->actions[FORWARD_ACTION] =
g_object_new (EPHY_TYPE_NAVIGATION_ACTION,
"name", "NavigationForward",
- "label", _("Forward"),
+ "label", _("_Forward"),
"stock_id", GTK_STOCK_GO_FORWARD,
- "tooltip", _("Go forward"),
+ "tooltip", _("Go to the next visited page"),
/* this is the tooltip on the Forward button's drop-down arrow, which will show
* a menu with all sites you can go 'forward' to
*/
@@ -279,13 +280,14 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
NULL);
g_signal_connect_swapped (action, "open-link",
G_CALLBACK (ephy_link_open), toolbar);
- gtk_action_group_add_action (priv->action_group, action);
+ gtk_action_group_add_action_with_accel (priv->action_group, action,
+ "<alt>Right");
g_object_unref (action);
action = priv->actions[UP_ACTION] =
g_object_new (EPHY_TYPE_NAVIGATION_ACTION,
"name", "NavigationUp",
- "label", _("Up"),
+ "label", _("_Up"),
"stock_id", GTK_STOCK_GO_UP,
"tooltip", _("Go up one level"),
/* this is the tooltip on the Up button's drop-down arrow, which will show
@@ -297,7 +299,8 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
NULL);
g_signal_connect_swapped (action, "open-link",
G_CALLBACK (ephy_link_open), toolbar);
- gtk_action_group_add_action (priv->action_group, action);
+ gtk_action_group_add_action_with_accel (priv->action_group, action,
+ "<alt>Up");
g_object_unref (action);
/* FIXME: I'm still waiting for the exact term to