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.
This commit is contained in:
Christian Dywan 2011-01-30 19:11:38 +01:00
parent 07ffc279b2
commit aeccc9e9ac

View file

@ -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;