# HG changeset patch # User Olaf Wintermann # Date 1732914158 -3600 # Node ID 55fb6bad549d84b412bec1e8cd61b5eac2d6e509 # Parent a1946c97de099cf6ac29a1f0a095b8b462a71d99 fix gtk3 tableview contextmenu diff -r a1946c97de09 -r 55fb6bad549d ui/gtk/list.c --- 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);