From: Christian Dywan Date: Sun, 30 Jan 2011 18:11:38 +0000 (+0100) Subject: Use midori_browser_add_tab for tab on tab bar click X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeccc9e9ac22bb9fe2be164b58fdd0150bad9ecf;p=midori 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. --- 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;