summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2005-07-19 09:06:47 +0000
committerJan Djärv <jan.h.d@swipnet.se>2005-07-19 09:06:47 +0000
commit8e7c28c3f74f9cec42544f1fc34ef6009dcd5d84 (patch)
treec5e73d9e4c233edbba89ad251f7ce7deafbcf437
parentb045fe9121c0a13701fcd0d67e41b01616473a99 (diff)
downloademacs-8e7c28c3f74f9cec42544f1fc34ef6009dcd5d84.tar.gz
* lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
labels in menu bar.
-rw-r--r--lwlib/ChangeLog5
-rw-r--r--lwlib/lwlib-Xm.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index 17a92de5415..4ce570b989c 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-19 Jan Dj,Ad(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.
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 02a2f035aa3..27118d8ab92 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -524,6 +524,10 @@ make_menu_in_widget (instance, widget, val, keep_first_children)
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 */
@@ -632,6 +636,8 @@ make_menu_in_widget (instance, widget, val, keep_first_children)
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback,
(XtPointer)instance);
+ XtOverrideTranslations (button, override);
+
}
children[child_index] = button;