ui/motif/label.c

changeset 63
46a42f0c4f93
parent 62
70d2aee84432
child 122
e82b01d17a78
--- a/ui/motif/label.c	Sun Jan 04 22:12:07 2015 +0100
+++ b/ui/motif/label.c	Mon Jan 05 11:49:46 2015 +0100
@@ -51,3 +51,20 @@
     
     return widget;
 }
+
+UIWIDGET ui_space(UiObject *obj) {
+    UiContainer *ct = uic_get_current_container(obj);
+    XmString str = XmStringCreateLocalized("");
+    
+    int n = 0;
+    Arg args[16]; 
+    XtSetArg(args[n], XmNlabelString, str);
+    n++;
+    
+    Widget parent = ct->prepare(ct, args, &n, TRUE);
+    Widget widget = XmCreateLabel(parent, "space_label", args, n);
+    ct->add(ct, widget);  
+    XtManageChild(widget);
+    
+    return widget;
+}
\ No newline at end of file

mercurial