[Xfce4-commits] <midori:master> Show bookmarksbar after item was added to db and not before

Christian Dywan noreply at xfce.org
Sat Jun 26 17:46:06 CEST 2010


Updating branch refs/heads/master
         to b2d0d0af8ec2be672631d6acaed680a9958d9bea (commit)
       from 08dab16bc22b755ea56d81fd06d2122398c3052b (commit)

commit b2d0d0af8ec2be672631d6acaed680a9958d9bea
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Fri Jun 25 00:24:53 2010 -0400

    Show bookmarksbar after item was added to db and not before

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

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 5b3fd37..958da3c 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -911,7 +911,6 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
     if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
     {
         gchar* selected;
-        KatzeArray* folder;
 
         katze_item_set_name (bookmark,
             gtk_entry_get_text (GTK_ENTRY (entry_title)));
@@ -927,11 +926,6 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
                 gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_app)));
         }
 
-        if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)))
-            if (!gtk_widget_get_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 HAVE_SQLITE
@@ -950,6 +944,10 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
         }
         else
             midori_bookmarks_insert_item_db (db, bookmark, selected);
+
+        if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)))
+            if (!gtk_widget_get_visible (browser->bookmarkbar))
+                _action_set_active (browser, "Bookmarkbar", TRUE);
         #endif
         g_free (selected);
     }



More information about the Xfce4-commits mailing list