From 13b3d92da4d248b5a4e7a43f6849bac2471f4d21 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 2 Jul 2003 19:13:03 +0000 Subject: Implement custom tooltip setter; sets tooltip on the directional button. 2003-07-02 Christian Persch * lib/widgets/ephy-arrow-toolbutton.c: (ephy_arrow_toolbutton_set_tooltip), (ephy_arrow_toolbutton_class_init): Implement custom tooltip setter; sets tooltip on the directional button. * src/toolbar.c: (toolbar_setup_actions): Set tooltips on custom actions. --- src/toolbar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/toolbar.c b/src/toolbar.c index 0a290d551..0fdda294e 100755 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -300,6 +300,7 @@ toolbar_setup_actions (Toolbar *t) "name", "NavigationBack", "label", _("Back"), "stock_id", GTK_STOCK_GO_BACK, + "tooltip", _("Go back"), "window", t->priv->window, "direction", EPHY_NAVIGATION_DIRECTION_BACK, NULL); @@ -312,6 +313,7 @@ toolbar_setup_actions (Toolbar *t) "name", "NavigationForward", "label", _("Forward"), "stock_id", GTK_STOCK_GO_FORWARD, + "tooltip", _("Go forward"), "window", t->priv->window, "direction", EPHY_NAVIGATION_DIRECTION_FORWARD, NULL); @@ -323,9 +325,10 @@ toolbar_setup_actions (Toolbar *t) action = g_object_new (EPHY_TYPE_NAVIGATION_ACTION, "name", "NavigationUp", "label", _("Up"), + "stock_id", GTK_STOCK_GO_UP, + "tooltip", _("Go up"), "window", t->priv->window, "direction", EPHY_NAVIGATION_DIRECTION_UP, - "stock_id", GTK_STOCK_GO_UP, NULL); g_signal_connect (action, "activate", G_CALLBACK (window_cmd_go_up), t->priv->window); @@ -356,6 +359,7 @@ toolbar_setup_actions (Toolbar *t) action = g_object_new (EPHY_TYPE_ZOOM_ACTION, "name", "Zoom", "label", _("Zoom"), + "tooltip", _("Zoom"), "zoom", 1.0, NULL); g_signal_connect (action, "zoom_to_level", @@ -375,6 +379,7 @@ toolbar_setup_actions (Toolbar *t) "name", "ToolbarGo", "label", _("Go"), "stock_id", GTK_STOCK_JUMP_TO, + "tooltip", _("Go to the address entered in the location entry."), NULL); g_signal_connect (action, "activate", G_CALLBACK (window_cmd_load_location), t->priv->window); -- cgit v1.2.3