]> spindle.queued.net Git - midori/commitdiff
Close tabs in the Tab Panel with a middle click
authorChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 21:59:58 +0000 (23:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 22:04:07 +0000 (00:04 +0200)
extensions/tab-panel.c

index dceb72df12d5b0064c2cb2f9ad592b31b2cd697e..6f85332ce524c8c3d4feb0dc6c555eccaa627594 100644 (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);