]> Pileus Git - ~andy/gtk/commitdiff
gtkstatusicon: Use symbolic names for button numbers
authorCarlos Garcia Campos <cgarcia@igalia.com>
Wed, 25 Jan 2012 17:55:29 +0000 (18:55 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 27 Jan 2012 08:47:44 +0000 (09:47 +0100)
gtk/gtkstatusicon.c

index e6d5520d2ed395592638244ca8666ad06eecd5e2..1dffba88279cf25be041f3c0b694737cc9d6f1ff 100644 (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;