Close tabs in the Tab Panel with a middle click
This commit is contained in:
parent
f66e86a4fb
commit
7b36d4dd58
1 changed files with 3 additions and 1 deletions
|
@ -187,11 +187,13 @@ midori_extension_button_release_event_cb (GtkWidget* widget,
|
||||||
|
|
||||||
gtk_tree_model_get (model, &iter, 0, &view, -1);
|
gtk_tree_model_get (model, &iter, 0, &view, -1);
|
||||||
|
|
||||||
if (event->button != 3)
|
if (event->button == 1)
|
||||||
{
|
{
|
||||||
MidoriBrowser* browser = midori_browser_get_for_widget (widget);
|
MidoriBrowser* browser = midori_browser_get_for_widget (widget);
|
||||||
midori_browser_set_current_tab (browser, view);
|
midori_browser_set_current_tab (browser, view);
|
||||||
}
|
}
|
||||||
|
else if (event->button == 2)
|
||||||
|
gtk_widget_destroy (view);
|
||||||
else
|
else
|
||||||
midori_extension_popup (widget, event, view, extension);
|
midori_extension_popup (widget, event, view, extension);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue