[Xfce4-commits] <midori:master> Show bookmarkbar if 'Show in the toolbar' is used on a bookmark

Christian Dywan noreply at xfce.org
Fri Jan 1 23:40:03 CET 2010


Updating branch refs/heads/master
         to d81f84aa9c7d36c5e69bba4c93aa3bc0290eaf4e (commit)
       from 578f74a30820dcbc5c8eb2f2d6793b46ec0deaea (commit)

commit d81f84aa9c7d36c5e69bba4c93aa3bc0290eaf4e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Jan 1 23:37:13 2010 +0100

    Show bookmarkbar if 'Show in the toolbar' is used on a bookmark

 midori/midori-browser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index e65187b..fbd0d58 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -866,6 +866,10 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
                 ? 1 : -1);
         }
 
+        if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)))
+            if (!GTK_WIDGET_VISIBLE (browser->bookmarkbar))
+                _action_set_active (browser, "Bookmarkbar", TRUE);
+
         folder = browser->bookmarks;
         selected = gtk_combo_box_get_active_text (GTK_COMBO_BOX (combo_folder));
         if (strcmp (selected, _("Toplevel folder")))



More information about the Xfce4-commits mailing list