SHA256
1
0
forked from pool/nemo
nemo/nemo-gtk-3.20.patch

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);