aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCyril Brulebois <cyrilbois@src.gnome.org>2007-11-12 06:37:37 +0800
committerCyril Brulebois <cyrilbois@src.gnome.org>2007-11-12 06:37:37 +0800
commitec328b5c31da2accae0a52e47a259fb15c07ad8c (patch)
treef462b1f759ebbef6e95c86edaa2b09361025d46f /lib
parente36d7612882a26dfafbf4aafb0a74a73af116a50 (diff)
downloadgsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar.gz
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar.bz2
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar.lz
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar.xz
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.tar.zst
gsoc2013-epiphany-ec328b5c31da2accae0a52e47a259fb15c07ad8c.zip
Hide Back/Forward buttons when disable_history lockdown key is enabled. Make
the call to gtk_widget_show() in editable toolbar's create_item_from_action() conditional. Fixes bug #394795. svn path=/trunk/; revision=7663
Diffstat (limited to 'lib')
-rw-r--r--lib/egg/egg-editable-toolbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index d65b7eb97..2a6780f54 100644
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -579,12 +579,14 @@ create_item_from_action (EggEditableToolbar *etoolbar,
const char *name)
{
GtkToolItem *item;
+ gboolean visible;
g_return_val_if_fail (name != NULL, NULL);
if (strcmp (name, "_separator") == 0)
{
item = gtk_separator_tool_item_new ();
+ visible = TRUE;
}
else
{
@@ -601,9 +603,11 @@ create_item_from_action (EggEditableToolbar *etoolbar,
g_signal_connect_object (action, "notify::sensitive",
G_CALLBACK (action_sensitive_cb), item, 0);
+ visible = gtk_action_get_visible (action);
}
- gtk_widget_show (GTK_WIDGET (item));
+ if (visible)
+ gtk_widget_show (GTK_WIDGET (item));
g_object_set_data_full (G_OBJECT (item), EGG_ITEM_NAME,
g_strdup (name), g_free);