[gtk+] gtkstatusicon: Use symbolic names for button numbers



commit f20551e2ed5092b3c66b7141d38b3c2139dd8be0
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 25 18:55:29 2012 +0100

    gtkstatusicon: Use symbolic names for button numbers

 gtk/gtkstatusicon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c
index e6d5520..1dffba8 100644
--- a/gtk/gtkstatusicon.c
+++ b/gtk/gtkstatusicon.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]