ui/gtk/list.c

changeset 98
16e84fac48bd
parent 90
f501f0efc9a8
child 100
d2bd73d28ff1
equal deleted inserted replaced
97:5a3d27b8e6b0 98:16e84fac48bd
433 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS 433 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS
434 SCROLLEDWINDOW_SET_CHILD(scroll_area, view); 434 SCROLLEDWINDOW_SET_CHILD(scroll_area, view);
435 435
436 if(args.contextmenu) { 436 if(args.contextmenu) {
437 UIMENU menu = ui_contextmenu_create(args.contextmenu, obj, scroll_area); 437 UIMENU menu = ui_contextmenu_create(args.contextmenu, obj, scroll_area);
438 #if GTK_MAJOR_VERSION >= 4
438 ui_widget_set_contextmenu(scroll_area, menu); 439 ui_widget_set_contextmenu(scroll_area, menu);
440 #else
441 ui_widget_set_contextmenu(view, menu);
442 #endif
439 } 443 }
440 444
441 UI_APPLY_LAYOUT1(current, args); 445 UI_APPLY_LAYOUT1(current, args);
442 current->container->add(current->container, scroll_area, FALSE); 446 current->container->add(current->container, scroll_area, FALSE);
443 447

mercurial