diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-03-12 14:49:48 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-03-13 13:10:30 +0000 |
commit | 90e938bf15c8adcd6535d3a1254b56c9708af3e7 (patch) | |
tree | b66162e75c0023a4cf6a2ef69ad14226130ce0a8 /tests/testiconview.c | |
parent | 45f660ef750457e0ba08052f1800c35c218cc426 (diff) | |
download | gtk+-90e938bf15c8adcd6535d3a1254b56c9708af3e7.tar.gz |
Use gdk_event_triggers_context_menu() instead of checking for event->button == 3
Diffstat (limited to 'tests/testiconview.c')
-rw-r--r-- | tests/testiconview.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testiconview.c b/tests/testiconview.c index 325622800b..ea1af1a1d8 100644 --- a/tests/testiconview.c +++ b/tests/testiconview.c @@ -389,7 +389,8 @@ button_press_event_handler (GtkWidget *widget, GdkEventButton *event) { /* Ignore double-clicks and triple-clicks */ - if (event->button == 3 && event->type == GDK_BUTTON_PRESS) + if (gdk_event_triggers_context_menu ((GdkEvent *) event) && + event->type == GDK_BUTTON_PRESS) { do_popup_menu (widget, event); return TRUE; |