16 lines
419 B
Diff
16 lines
419 B
Diff
|
--- a/eel/eel-gtk-extensions.c
|
||
|
+++ b/eel/eel-gtk-extensions.c
|
||
|
@@ -287,7 +287,12 @@ eel_pop_up_context_menu (GtkMenu *menu,
|
||
|
button = 0;
|
||
|
}
|
||
|
|
||
|
+#if GTK_CHECK_VERSION (3, 22, 0)
|
||
|
gtk_menu_popup_at_pointer (menu, (GdkEvent *) event);
|
||
|
+#else
|
||
|
+ gtk_menu_popup (menu, NULL, NULL, NULL, NULL,
|
||
|
+ button, event ? event->time : GDK_CURRENT_TIME);
|
||
|
+#endif
|
||
|
|
||
|
g_object_ref_sink (menu);
|
||
|
g_object_unref (menu);
|