diff -r 473954dc6b74 -r ab71409644b0 ui/gtk/text.c --- a/ui/gtk/text.c Sun Sep 29 13:32:51 2024 +0200 +++ b/ui/gtk/text.c Sun Sep 29 20:25:41 2024 +0200 @@ -542,6 +542,7 @@ static UIWIDGET create_textfield(UiObject *obj, UiBool frameless, UiBool password, UiTextFieldArgs args) { GtkWidget *textfield = gtk_entry_new(); + ui_set_name_and_style(textfield, args.name, args.style_class); UiObject* current = uic_current_obj(obj); UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_STRING); @@ -700,7 +701,6 @@ } static void ui_path_textfield_destroy(GtkWidget *object, UiPathTextField *pathtf) { - free(pathtf->hbox); g_object_unref(pathtf->entry); free(pathtf); }