From: Christian Dywan Date: Fri, 17 Oct 2008 21:15:37 +0000 (+0200) Subject: Open all bookmarks in the current tab X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b82ccc1397e234d9e7e6b13b307d5a03e55a480;p=midori Open all bookmarks in the current tab --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 52453d2c..5c2cd264 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1499,9 +1499,8 @@ _action_bookmarks_activate_item (GtkAction* action, KatzeItem* item, MidoriBrowser* browser) { - gint n = midori_browser_add_item (browser, item); - midori_browser_set_current_page (browser, n); - _midori_browser_update_actions (browser); + _midori_browser_open_uri (browser, katze_item_get_uri (item)); + gtk_widget_grab_focus (midori_browser_get_current_tab (browser)); } static void @@ -3943,7 +3942,7 @@ midori_browser_settings_notify (MidoriWebSettings* web_settings, name = g_intern_string (pspec->name); g_value_init (&value, pspec->value_type); - g_object_get_property (G_OBJECT (browser->settings), name, &value); + g_object_get_property (G_OBJECT (web_settings), name, &value); if (name == g_intern_string ("toolbar-style")) _midori_browser_set_toolbar_style (browser, g_value_get_enum (&value));