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



commit ffd6dab8aa9dec1ed3d81cfe9aa1c71b35545264
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 25 18:16:23 2012 +0100

    gtkappchooserwidget: Use symbolic names for button numbers

 gtk/gtkappchooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 459fe5d..083d62e 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -208,7 +208,7 @@ widget_button_press_event_cb (GtkWidget      *widget,
 {
   GtkAppChooserWidget *self = user_data;
 
-  if (event->button == 3 && event->type == GDK_BUTTON_PRESS)
+  if (event->button == GDK_BUTTON_SECONDARY && event->type == GDK_BUTTON_PRESS)
     {
       GAppInfo *info;
       GtkWidget *menu;



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