fix widget.c build (GTK)

5 days ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 31 Mar 2025 21:14:32 +0200 (5 days ago)
changeset 542
af268fbe676a
parent 541
63289f61fb7f
child 543
2b38cff00983

fix widget.c build (GTK)

ui/gtk/objs.mk file | annotate | diff | comparison | revisions
ui/gtk/widget.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/objs.mk	Sun Mar 30 17:54:17 2025 +0200
+++ b/ui/gtk/objs.mk	Mon Mar 31 21:14:32 2025 +0200
@@ -47,6 +47,7 @@
 GTKOBJ += dnd.o
 GTKOBJ += headerbar.o
 GTKOBJ += webview.o
+GTKOBJ += widget.o
 
 TOOLKITOBJS += $(GTKOBJ:%=$(GTK_OBJPRE)%)
 TOOLKITSOURCE += $(GTKOBJ:%.o=gtk/%.c)
--- a/ui/gtk/widget.c	Sun Mar 30 17:54:17 2025 +0200
+++ b/ui/gtk/widget.c	Mon Mar 31 21:14:32 2025 +0200
@@ -45,8 +45,8 @@
 UIWIDGET ui_separator_create(UiObject *obj, UiWidgetArgs *args) {
     UiObject* current = uic_current_obj(obj);
     GtkWidget *widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
-    ui_set_name_and_style(widget, args.name, args.style_class);
-    UI_APPLY_LAYOUT1(current, args);
+    ui_set_name_and_style(widget, args->name, args->style_class);
+    UI_APPLY_LAYOUT1(current, (*args));
     current->container->add(current->container, widget, FALSE);
     return widget;
 }

mercurial