gtkstatusicon: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:55:29 +01:00 committed by Carlos Garcia Campos
parent f84ec775d8
commit f20551e2ed

View File

@ -1625,7 +1625,7 @@ gtk_status_icon_button_press (GtkStatusIcon *status_icon,
emit_popup_menu_signal (status_icon, event->button, event->time);
return TRUE;
}
else if (event->button == 1 && event->type == GDK_BUTTON_PRESS)
else if (event->button == GDK_BUTTON_PRIMARY && event->type == GDK_BUTTON_PRESS)
{
emit_activate_signal (status_icon);
return TRUE;