mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
labels in menu bar.
This commit is contained in:
parent
829b13e279
commit
7537ab9c84
2 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue