From 7f2b08c04d8e6af3d2fb3f3bdd060655a0c2037d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 25 Jan 2012 18:24:02 +0100 Subject: [PATCH] gtkcombobox: Use symbolic names for button numbers --- gtk/gtkcombobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 4d7fd8add4..7e5ecabf7f 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -3222,7 +3222,7 @@ gtk_combo_box_menu_button_press (GtkWidget *widget, GtkComboBoxPrivate *priv = combo_box->priv; if (GTK_IS_MENU (priv->popup_widget) && - event->type == GDK_BUTTON_PRESS && event->button == 1) + event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY) { if (priv->focus_on_click && !gtk_widget_has_focus (priv->button))