summaryrefslogtreecommitdiff
path: root/tests/testiconview.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testiconview.c')
-rw-r--r--tests/testiconview.c3
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;