From f66e86a4fbaddd70ab699c661283c6c634f62cb8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 22 Jun 2009 23:58:25 +0200 Subject: [PATCH] Switch tabs in the Tab Panel with a single left click --- extensions/tab-panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5