From: Christian Dywan Date: Mon, 22 Jun 2009 21:59:58 +0000 (+0200) Subject: Close tabs in the Tab Panel with a middle click X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b36d4dd589ff30b83af4e680b93864cbf24a511;p=midori Close tabs in the Tab Panel with a middle click --- 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);