pidgin/gtkdebug.c

changeset 38705
62a7a975251a
parent 38645
bf3f91939dc5
child 38707
6f4d3ab2f2ed
--- a/pidgin/gtkdebug.c	Fri Sep 08 00:55:18 2017 -0400
+++ b/pidgin/gtkdebug.c	Fri Sep 08 19:43:07 2017 -0400
@@ -396,7 +396,7 @@
 	GtkToolbarStyle value[3];
 	int i;
 
-	if (!(event->button == 3 && event->type == GDK_BUTTON_PRESS))
+	if (!gdk_event_triggers_context_menu((GdkEvent *)event))
 		return FALSE;
 
 	text[0] = _("_Icon Only");          value[0] = GTK_TOOLBAR_ICONS;

mercurial