From: Christian Dywan Date: Mon, 22 Jun 2009 21:58:25 +0000 (+0200) Subject: Switch tabs in the Tab Panel with a single left click X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f66e86a4fbaddd70ab699c661283c6c634f62cb8;p=midori Switch tabs in the Tab Panel with a single left click --- diff --git a/extensions/tab-panel.c b/extensions/tab-panel.c index 385f22ea..dceb72df 100644 --- a/extensions/tab-panel.c +++ b/extensions/tab-panel.c @@ -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);