--- a/ui/motif/widget.c Sat Apr 05 17:57:04 2025 +0200 +++ b/ui/motif/widget.c Sun Jul 20 22:04:39 2025 +0200 @@ -37,7 +37,7 @@ #include "../common/object.h" -UIWIDGET ui_customwidget_create(UiObject *obj, ui_createwidget_func create_widget, void *userdata, UiWidgetArgs args) { +UIWIDGET ui_customwidget_create(UiObject *obj, ui_createwidget_func create_widget, void *userdata, UiWidgetArgs *args) { Arg xargs[64]; int n = 0; @@ -56,12 +56,11 @@ UIEXPORT UIWIDGET ui_separator_create(UiObject *obj, UiWidgetArgs *args) { Arg xargs[64]; int n = 0; - UiWidgetArgs a = *args; UiContainerPrivate *ctn = ui_obj_container(obj); - UI_APPLY_LAYOUT(ctn->layout, a); + UI_APPLY_LAYOUT(ctn->layout, args); - char *name = a.name ? (char*)a.name : "separator"; + char *name = args->name ? (char*)args->name : "separator"; Widget parent = ctn->prepare(ctn, xargs, &n); Widget widget = XmCreateSeparator(parent, name, xargs, n); XtManageChild(widget); @@ -69,3 +68,11 @@ return widget; } + +void ui_widget_set_size(UIWIDGET w, int width, int height) { + +} + +void ui_widget_redraw(UIWIDGET w) { + +}