540 |
540 |
541 |
541 |
542 |
542 |
543 static UIWIDGET create_textfield(UiObject *obj, UiBool frameless, UiBool password, UiTextFieldArgs args) { |
543 static UIWIDGET create_textfield(UiObject *obj, UiBool frameless, UiBool password, UiTextFieldArgs args) { |
544 GtkWidget *textfield = gtk_entry_new(); |
544 GtkWidget *textfield = gtk_entry_new(); |
|
545 ui_set_name_and_style(textfield, args.name, args.style_class); |
545 |
546 |
546 UiObject* current = uic_current_obj(obj); |
547 UiObject* current = uic_current_obj(obj); |
547 UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_STRING); |
548 UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_STRING); |
548 |
549 |
549 UiTextField *uitext = malloc(sizeof(UiTextField)); |
550 UiTextField *uitext = malloc(sizeof(UiTextField)); |