+2005-07-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
+ labels in menu bar.
+
2005-07-04 Lute Kamstra <lute@gnu.org>
Update FSF's address in GPL notices.
Widget* old_children;
unsigned int old_num_children;
+ /* Disable drag and drop for labels in menu bar. */
+ static char overrideTrans[] = "<Btn2Down>: Noop()";
+ XtTranslations override = XtParseTranslationTable (overrideTrans);
+
old_children = XtCompositeChildren (widget, &old_num_children);
/* Allocate the children array */
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback,
(XtPointer)instance);
+ XtOverrideTranslations (button, override);
+
}
children[child_index] = button;