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



commit 59a1434557d5550b85b32c640c560606a4020679
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 25 18:38:50 2012 +0100

    gtkmenutoolbutton: Use symbolic names for button numbers

 gtk/gtkmenutoolbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index afcd69a..b212a8b 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -417,7 +417,7 @@ arrow_button_button_press_event_cb (GtkWidget         *widget,
                                     GdkEventButton    *event,
                                     GtkMenuToolButton *button)
 {
-  if (event->button == 1)
+  if (event->button == GDK_BUTTON_PRIMARY)
     {
       popup_menu_under_arrow (button, event);
       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);



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