ui/gtk/list.c

branch
newapi
changeset 401
55fb6bad549d
parent 394
bedd499b640d
child 411
3e91b7aff6a1
equal deleted inserted replaced
400:a1946c97de09 401:55fb6bad549d
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