From 7b36d4dd589ff30b83af4e680b93864cbf24a511 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 22 Jun 2009 23:59:58 +0200 Subject: [PATCH] Close tabs in the Tab Panel with a middle click --- extensions/tab-panel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/tab-panel.c b/extensions/tab-panel.c index dceb72df..6f85332c 100644 --- a/extensions/tab-panel.c +++ b/extensions/tab-panel.c @@ -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); -- 2.39.5