ui/gtk/list.c

branch
newapi
changeset 401
55fb6bad549d
parent 394
bedd499b640d
child 411
3e91b7aff6a1
--- a/ui/gtk/list.c	Fri Nov 29 21:54:41 2024 +0100
+++ b/ui/gtk/list.c	Fri Nov 29 22:02:38 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