From 7b82ccc1397e234d9e7e6b13b307d5a03e55a480 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 17 Oct 2008 23:15:37 +0200 Subject: [PATCH] Open all bookmarks in the current tab --- midori/midori-browser.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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));