ui/motif/container.c

changeset 101
7b3a3130be44
parent 100
d2bd73d28ff1
--- a/ui/motif/container.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/ui/motif/container.c	Mon Jan 06 22:22:55 2025 +0100
@@ -128,12 +128,13 @@
     Arg xargs[16];
     int n = 0;
     
-    XtSetArg(xargs[n], XmNbackground, 0); n++;
-    
     UiContainerPrivate *ctn = ui_obj_container(obj);
     UI_APPLY_LAYOUT(ctn->layout, args);
     
     Widget parent = ctn->prepare(ctn, xargs, &n);
+    XtSetArg(xargs[n], gridMargin, args.margin); n++;
+    XtSetArg(xargs[n], gridColumnSpacing, args.columnspacing); n++;
+    XtSetArg(xargs[n], gridRowSpacing, args.rowspacing); n++;
     Widget grid = XtCreateManagedWidget(args.name ? args.name : "gridcontainer", gridClass, parent, xargs, n);
     ctn->add(ctn, grid);
     

mercurial