ui/gtk/display.c

changeset 109
c3dfcb8f0be7
parent 108
77254bd6dccb
child 112
c3f2f16fa4b8
equal deleted inserted replaced
108:77254bd6dccb 109:c3dfcb8f0be7
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