gtkcombobox: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:24:02 +01:00 committed by Carlos Garcia Campos
parent 2dbfa88459
commit 7f2b08c04d

View File

@ -3222,7 +3222,7 @@ gtk_combo_box_menu_button_press (GtkWidget *widget,
GtkComboBoxPrivate *priv = combo_box->priv; GtkComboBoxPrivate *priv = combo_box->priv;
if (GTK_IS_MENU (priv->popup_widget) && 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 && if (priv->focus_on_click &&
!gtk_widget_has_focus (priv->button)) !gtk_widget_has_focus (priv->button))