ui/gtk/display.c

changeset 682
326e7a5122fa
parent 669
5b930e8c3a87
child 801
e096c441e874
equal deleted inserted replaced
681:aa1b280b5e4d 682:326e7a5122fa
99 99
100 switch(args->align) { 100 switch(args->align) {
101 case UI_ALIGN_DEFAULT: break; 101 case UI_ALIGN_DEFAULT: break;
102 case UI_ALIGN_LEFT: set_alignment(widget, 0, .5); break; 102 case UI_ALIGN_LEFT: set_alignment(widget, 0, .5); break;
103 case UI_ALIGN_RIGHT: set_alignment(widget, 1, .5); break; 103 case UI_ALIGN_RIGHT: set_alignment(widget, 1, .5); break;
104 case UI_ALIGN_CENTER: break; // TODO 104 case UI_ALIGN_CENTER: set_alignment(widget, .5, .5); break;
105 } 105 }
106 106
107 107
108 UiVar* var = uic_widget_var(obj->ctx, current->ctx, args->value, args->varname, UI_VAR_STRING); 108 UiVar* var = uic_widget_var(obj->ctx, current->ctx, args->value, args->varname, UI_VAR_STRING);
109 if(var) { 109 if(var) {

mercurial