ui/motif/label.c

changeset 63
46a42f0c4f93
parent 62
70d2aee84432
child 122
e82b01d17a78
equal deleted inserted replaced
62:70d2aee84432 63:46a42f0c4f93
49 ct->add(ct, widget); 49 ct->add(ct, widget);
50 XtManageChild(widget); 50 XtManageChild(widget);
51 51
52 return widget; 52 return widget;
53 } 53 }
54
55 UIWIDGET ui_space(UiObject *obj) {
56 UiContainer *ct = uic_get_current_container(obj);
57 XmString str = XmStringCreateLocalized("");
58
59 int n = 0;
60 Arg args[16];
61 XtSetArg(args[n], XmNlabelString, str);
62 n++;
63
64 Widget parent = ct->prepare(ct, args, &n, TRUE);
65 Widget widget = XmCreateLabel(parent, "space_label", args, n);
66 ct->add(ct, widget);
67 XtManageChild(widget);
68
69 return widget;
70 }

mercurial