gtkmenutoolbutton: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:38:50 +01:00 committed by Carlos Garcia Campos
parent 73449a4e28
commit 59a1434557

View File

@ -417,7 +417,7 @@ arrow_button_button_press_event_cb (GtkWidget *widget,
GdkEventButton *event, GdkEventButton *event,
GtkMenuToolButton *button) GtkMenuToolButton *button)
{ {
if (event->button == 1) if (event->button == GDK_BUTTON_PRIMARY)
{ {
popup_menu_under_arrow (button, event); popup_menu_under_arrow (button, event);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);