aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-toolbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@svn.gnome.org>2007-09-10 06:43:58 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-09-10 06:43:58 +0800
commit8344bc78c1bfc2e200c4525f07c4e50ba77f279d (patch)
tree5bd2b6e69472798bca91ebe89e4b40f3dc41ddb1 /src/ephy-toolbar.c
parent7a9491270389f22445a70f56aadf25d140960836 (diff)
downloadgsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar.gz
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar.bz2
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar.lz
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar.xz
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.tar.zst
gsoc2013-epiphany-8344bc78c1bfc2e200c4525f07c4e50ba77f279d.zip
Makes tooltips for Back and Forward buttons display the titles of relative
2007-09-10 Cosimo Cecchi <cosimoc@svn.gnome.org> * src/ephy-toolbar.c: (ephy_toolbar_set_navigation_tooltips): * src/ephy-toolbar.h: * src/ephy-window.c: (sync_tab_navigation): Makes tooltips for Back and Forward buttons display the titles of relative pages. Fixes bug #341400. Patch by Cyril Brulebois. svn path=/trunk/; revision=7364
Diffstat (limited to 'src/ephy-toolbar.c')
-rw-r--r--src/ephy-toolbar.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 48d4dc832..beb5f9070 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -457,6 +457,26 @@ ephy_toolbar_set_navigation_actions (EphyToolbar *toolbar,
}
void
+ephy_toolbar_set_navigation_tooltips (EphyToolbar *toolbar,
+ const char *back_title,
+ const char *forward_title)
+{
+ EphyToolbarPrivate *priv = toolbar->priv;
+ GValue value = { 0 };
+
+ g_value_init (&value, G_TYPE_STRING);
+
+ g_value_set_static_string (&value, back_title);
+ g_object_set_property (G_OBJECT (priv->actions[BACK_ACTION]),
+ "tooltip", &value);
+
+ g_value_set_static_string (&value, forward_title);
+ g_object_set_property (G_OBJECT (priv->actions[FORWARD_ACTION]),
+ "tooltip", &value);
+ g_value_unset (&value);
+}
+
+void
ephy_toolbar_set_security_state (EphyToolbar *toolbar,
gboolean is_secure,
gboolean show_lock,