From aeccc9e9ac22bb9fe2be164b58fdd0150bad9ecf Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 30 Jan 2011 19:11:38 +0100 Subject: [PATCH] Use midori_browser_add_tab for tab on tab bar click So we get speed dial if it is enabled like on new tab button. --- midori/midori-browser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index a3bd4059..86ddf6a4 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4756,9 +4756,7 @@ midori_browser_notebook_button_press_event_after_cb (GtkNotebook* notebook, if (/*(event->type == GDK_2BUTTON_PRESS && event->button == 1) || */(event->type == GDK_BUTTON_PRESS && event->button == 2)) { - gint n; - GtkWidget* view = midori_view_new_with_title (NULL, browser->settings, TRUE); - n = midori_browser_add_tab (browser, view); + gint n = midori_browser_add_uri (browser, ""); midori_browser_set_current_page (browser, n); return TRUE;