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

17 lines
515 B
Diff

--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -285,9 +285,13 @@ eel_pop_up_context_menu (GtkMenu *menu,
button = 0;
}
+#if GTK_CHECK_VERSION (3, 22, 0)
if (button > 0) {
gtk_menu_popup_at_pointer (menu, (GdkEvent *) event);
} else {
+#else
+ if (TRUE) {
+#endif
gtk_menu_popup (menu, /* menu */
NULL, /* parent_menu_shell */
NULL, /* parent_menu_item */