[Xfce4-commits] <midori:master> Update toolbar menu items (actions) after changes
Christian Dywan
noreply at xfce.org
Sat Dec 10 19:54:04 CET 2011
Updating branch refs/heads/master
to 35757c28429af1e431c15c38288412095841df8d (commit)
from 9ba0c2806ed9a7d33fe5c29be95b6023ada3828c (commit)
commit 35757c28429af1e431c15c38288412095841df8d
Author: Peter Hatina <phatina at redhat.com>
Date: Sat Dec 10 19:31:00 2011 +0100
Update toolbar menu items (actions) after changes
Fixes: https://bugs.launchpad.net/midori/+bug/853023
midori/midori-browser.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index a553850..a921373 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -6686,11 +6686,32 @@ midori_browser_settings_notify (MidoriWebSettings* web_settings,
else if (name == g_intern_string ("always-show-tabbar"))
_toggle_tabbar_smartly (browser, FALSE);
else if (name == g_intern_string ("show-menubar"))
+ {
sokoke_widget_set_visible (browser->menubar, g_value_get_boolean (&value));
+ gtk_toggle_action_set_active (
+ GTK_TOGGLE_ACTION (_action_by_name (browser, "Menubar")),
+ g_value_get_boolean (&value));
+ }
else if (name == g_intern_string ("show-navigationbar"))
+ {
browser->show_navigationbar = g_value_get_boolean (&value);
+ gtk_toggle_action_set_active (
+ GTK_TOGGLE_ACTION (_action_by_name (browser, "Navigationbar")),
+ g_value_get_boolean (&value));
+ }
+ else if (name == g_intern_string ("show-bookmarkbar"))
+ {
+ gtk_toggle_action_set_active (
+ GTK_TOGGLE_ACTION (_action_by_name (browser, "Bookmarkbar")),
+ g_value_get_boolean (&value));
+ }
else if (name == g_intern_string ("show-statusbar"))
+ {
browser->show_statusbar = g_value_get_boolean (&value);
+ gtk_toggle_action_set_active (
+ GTK_TOGGLE_ACTION (_action_by_name (browser, "Statusbar")),
+ g_value_get_boolean (&value));
+ }
else if (name == g_intern_string ("location-entry-search"))
{
katze_assign (browser->location_entry_search, g_value_dup_string (&value));
More information about the Xfce4-commits
mailing list