diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2005-07-19 09:06:47 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2005-07-19 09:06:47 +0000 |
commit | 7537ab9c84a0e2b9eb3682500b32675ef2014739 (patch) | |
tree | 1a0341a62e9dc815ece8f145bb6e2fafbaa86e22 /lwlib/lwlib-Xm.c | |
parent | 829b13e279369fbb7860f219592a591ef8287594 (diff) | |
download | emacs-7537ab9c84a0e2b9eb3682500b32675ef2014739.tar.gz |
* lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
labels in menu bar.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r-- | lwlib/lwlib-Xm.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |