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:
parent
07ffc279b2
commit
aeccc9e9ac
1 changed files with 1 additions and 3 deletions
|
@ -4756,9 +4756,7 @@ midori_browser_notebook_button_press_event_after_cb (GtkNotebook* notebook,
|
||||||
if (/*(event->type == GDK_2BUTTON_PRESS && event->button == 1)
|
if (/*(event->type == GDK_2BUTTON_PRESS && event->button == 1)
|
||||||
|| */(event->type == GDK_BUTTON_PRESS && event->button == 2))
|
|| */(event->type == GDK_BUTTON_PRESS && event->button == 2))
|
||||||
{
|
{
|
||||||
gint n;
|
gint n = midori_browser_add_uri (browser, "");
|
||||||
GtkWidget* view = midori_view_new_with_title (NULL, browser->settings, TRUE);
|
|
||||||
n = midori_browser_add_tab (browser, view);
|
|
||||||
midori_browser_set_current_page (browser, n);
|
midori_browser_set_current_page (browser, n);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue