ui/motif/button.c

changeset 62
70d2aee84432
parent 60
7cd1b8890302
child 98
efaae97bd95b
equal deleted inserted replaced
61:7ee124a58fe3 62:70d2aee84432
40 XmString str = XmStringCreateLocalized(label); 40 XmString str = XmStringCreateLocalized(label);
41 41
42 int n = 0; 42 int n = 0;
43 Arg args[16]; 43 Arg args[16];
44 44
45 Widget parent = ct->prepare(ct, args, &n, FALSE);
46 XtSetArg(args[n], XmNlabelString, str); 45 XtSetArg(args[n], XmNlabelString, str);
47 n++; 46 n++;
47
48 Widget parent = ct->prepare(ct, args, &n, FALSE);
48 Widget button = XmCreatePushButton(parent, "button", args, n); 49 Widget button = XmCreatePushButton(parent, "button", args, n);
49 ct->add(ct, button); 50 ct->add(ct, button);
50 51
51 if(f) { 52 if(f) {
52 UiEventData *event = ucx_mempool_malloc( 53 UiEventData *event = ucx_mempool_malloc(

mercurial