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

index 385f22ea255e15597232c17fc41461c34ebafaa2..dceb72df12d5b0064c2cb2f9ad592b31b2cd697e 100644 (file)
@@ -178,7 +178,7 @@ midori_extension_button_release_event_cb (GtkWidget*       widget,
     GtkTreeModel* model;
     GtkTreeIter iter;
 
-    if (event->button != 2 && event->button != 3)
+    if (event->button < 1 || event->button > 3)
         return FALSE;
 
     if (katze_tree_view_get_selected_iter (GTK_TREE_VIEW (widget), &model, &iter))
@@ -187,7 +187,7 @@ midori_extension_button_release_event_cb (GtkWidget*       widget,
 
         gtk_tree_model_get (model, &iter, 0, &view, -1);
 
-        if (event->button == 2)
+        if (event->button != 3)
         {
             MidoriBrowser* browser = midori_browser_get_for_widget (widget);
             midori_browser_set_current_tab (browser, view);