524 |
Widget* old_children; |
Widget* old_children; |
525 |
unsigned int old_num_children; |
unsigned int old_num_children; |
526 |
|
|
527 |
|
/* Disable drag and drop for labels in menu bar. */ |
528 |
|
static char overrideTrans[] = "<Btn2Down>: Noop()"; |
529 |
|
XtTranslations override = XtParseTranslationTable (overrideTrans); |
530 |
|
|
531 |
old_children = XtCompositeChildren (widget, &old_num_children); |
old_children = XtCompositeChildren (widget, &old_num_children); |
532 |
|
|
533 |
/* Allocate the children array */ |
/* Allocate the children array */ |
636 |
|
|
637 |
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback, |
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback, |
638 |
(XtPointer)instance); |
(XtPointer)instance); |
639 |
|
XtOverrideTranslations (button, override); |
640 |
|
|
641 |
} |
} |
642 |
|
|
643 |
children[child_index] = button; |
children[child_index] = button; |