ui/gtk/list.c

changeset 98
16e84fac48bd
parent 90
f501f0efc9a8
child 100
d2bd73d28ff1
--- a/ui/gtk/list.c	Thu Nov 28 18:03:12 2024 +0100
+++ b/ui/gtk/list.c	Fri Nov 29 22:11:07 2024 +0100
@@ -435,7 +435,11 @@
     
     if(args.contextmenu) {
         UIMENU menu = ui_contextmenu_create(args.contextmenu, obj, scroll_area);
+#if GTK_MAJOR_VERSION >= 4
         ui_widget_set_contextmenu(scroll_area, menu);
+#else
+        ui_widget_set_contextmenu(view, menu);
+#endif
     }
     
     UI_APPLY_LAYOUT1(current, args);

mercurial