aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-lockdown.c
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 /src/ephy-lockdown.c
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 'src/ephy-lockdown.c')
-rw-r--r--src/ephy-lockdown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c
index 5e447f770..526caa5c7 100644
--- a/src/ephy-lockdown.c
+++ b/src/ephy-lockdown.c
@@ -166,9 +166,11 @@ update_window (EphyWindow *window,
action = gtk_action_group_get_action (action_group, "GoHistory");
ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled);
action = gtk_action_group_get_action (special_toolbar_action_group, "NavigationBack");
+ gtk_action_set_visible (action, !disabled);
ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled);
action = gtk_action_group_get_action (special_toolbar_action_group, "NavigationForward");
ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled);
+ gtk_action_set_visible (action, !disabled);
disabled = eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_BOOKMARK_EDITING);
action = gtk_action_group_get_action (action_group, "GoBookmarks");