Close tabs in the Tab Panel with a middle click

This commit is contained in:
Christian Dywan 2009-06-22 23:59:58 +02:00
parent f66e86a4fb
commit 7b36d4dd58

View file

@ -187,11 +187,13 @@ midori_extension_button_release_event_cb (GtkWidget* widget,
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);
midori_browser_set_current_tab (browser, view);
}
else if (event->button == 2)
gtk_widget_destroy (view);
else
midori_extension_popup (widget, event, view, extension);