ui/gtk/toolkit.c

changeset 871
483191323952
parent 867
83bb0dd7123f
child 872
1e34a27e016d
equal deleted inserted replaced
870:e167cf006213 871:483191323952
548 void ui_set_widget_visibility_states(UiContext *ctx, GtkWidget *widget, const int *states) { 548 void ui_set_widget_visibility_states(UiContext *ctx, GtkWidget *widget, const int *states) {
549 if(!states) { 549 if(!states) {
550 return; 550 return;
551 } 551 }
552 size_t nstates = uic_group_array_size(states); 552 size_t nstates = uic_group_array_size(states);
553 ui_set_widget_ngroups(ctx, widget, states, nstates); 553 ui_set_widget_nvisibility_states(ctx, widget, states, nstates);
554 } 554 }
555 555
556 556
557 void ui_set_widget_nvisibility_states(UiContext *ctx, GtkWidget *widget, const int *states, size_t ngroups) { 557 void ui_set_widget_nvisibility_states(UiContext *ctx, GtkWidget *widget, const int *states, size_t ngroups) {
558 if(ngroups > 0) { 558 if(ngroups > 0) {

mercurial