]> spindle.queued.net Git - midori/commitdiff
Show bookmarkbar if 'Show in the toolbar' is used on a bookmark
authorChristian Dywan <christian@twotoasts.de>
Fri, 1 Jan 2010 22:37:13 +0000 (23:37 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 1 Jan 2010 22:37:13 +0000 (23:37 +0100)
midori/midori-browser.c

index e65187bfa618d9f90019ff4a2eb9ba6405058ad6..fbd0d5858b680f12a849f49d5c8eafa833a6d222 100644 (file)
@@ -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")))