aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>1999-10-06 23:25:07 +0000
committerGerd Moellmann <[email protected]>1999-10-06 23:25:07 +0000
commite9ec3919bcd929899fa2ed7bdddb8aee65dd1f3f (patch)
tree2448752aa4be60f0d4c94e3d0ad43f05eceb096e /lwlib
parentac44152803324a96100bb39ea1179e90091fbaf5 (diff)
(make_menu_in_widget, update_one_menu_entry): Use
widgets instead of gadgets to be able to set colors.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/lwlib-Xm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 6b1e3bfee8..285e961f3b 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -516,10 +516,10 @@ make_menu_in_widget (instance, widget, val, keep_first_children)
(cur->button_type == BUTTON_TYPE_TOGGLE
? XmN_OF_MANY : XmONE_OF_MANY));
++ac;
- button = XmCreateToggleButtonGadget (widget, cur->name, al, ac);
+ button = XmCreateToggleButton (widget, cur->name, al, ac);
}
else
- button = XmCreatePushButtonGadget (widget, cur->name, al, ac);
+ button = XmCreatePushButton (widget, cur->name, al, ac);
xm_update_label (instance, button, cur);
@@ -541,7 +541,7 @@ make_menu_in_widget (instance, widget, val, keep_first_children)
/* Non-zero values don't work reliably in conjunction with
Emacs' event loop */
XtSetArg (al [ac], XmNmappingDelay, 0); ac++;
- button = XmCreateCascadeButtonGadget (widget, cur->name, al, ac);
+ button = XmCreateCascadeButton (widget, cur->name, al, ac);
xm_update_label (instance, button, cur);
@@ -655,7 +655,7 @@ update_one_menu_entry (instance, widget, val, deep_p)
/* Tell Motif to put it in the right place */
XtSetArg (al [ac], XmNpositionIndex , i); ac++;
#endif
- button = XmCreateCascadeButtonGadget (parent, val->name, al, ac);
+ button = XmCreateCascadeButton (parent, val->name, al, ac);
xm_update_label (instance, button, val);
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback,