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

index 946e438ffd6d508ff6dd078674ee779a54fcc17e..22347899377fa1754f1f71cfee189bb2b29af31a 100644 (file)
@@ -75,7 +75,7 @@
  *   if (event->type == GDK_BUTTON_PRESS)
  *     {
  *       event_button = (GdkEventButton *) event;
- *       if (event_button->button == 3)
+ *       if (event_button->button == GDK_BUTTON_SECONDARY)
  *         {
  *           gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 
  *                           event_button->button, event_button->time);