[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lwlib/lwlib-Xm.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/lwlib/lwlib-Xm.c |
Date: |
Tue, 19 Jul 2005 05:06:47 -0400 |
Index: emacs/lwlib/lwlib-Xm.c
diff -c emacs/lwlib/lwlib-Xm.c:1.51 emacs/lwlib/lwlib-Xm.c:1.52
*** emacs/lwlib/lwlib-Xm.c:1.51 Mon Jul 4 15:13:05 2005
--- emacs/lwlib/lwlib-Xm.c Tue Jul 19 09:06:47 2005
***************
*** 524,529 ****
--- 524,533 ----
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,637 ****
--- 636,643 ----
XtAddCallback (button, XmNcascadingCallback, xm_pull_down_callback,
(XtPointer)instance);
+ XtOverrideTranslations (button, override);
+
}
children[child_index] = button;