ui/gtk/toolkit.c

branch
newapi
changeset 343
54f5d7eb1335
parent 339
b68b5f984074
equal deleted inserted replaced
342:99f83fbf48e9 343:54f5d7eb1335
407 } 407 }
408 free(cls); 408 free(cls);
409 409
410 } 410 }
411 } 411 }
412
413 void ui_set_widget_groups(UiContext *ctx, GtkWidget *widget, const int *groups) {
414 if(!groups) {
415 return;
416 }
417
418 size_t ngroups = uic_group_array_size(groups);
419 uic_add_group_widget_i(ctx, widget, (ui_enablefunc)ui_set_enabled, groups, ngroups);
420 ui_set_enabled(widget, FALSE);
421 }

mercurial