diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /src/xmenu.c | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index fc629b35104..b4338c1d653 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -740,10 +740,13 @@ menu_highlight_callback (GtkWidget *widget, gpointer call_data) | |||
| 740 | help = call_data ? cb_data->help : Qnil; | 740 | help = call_data ? cb_data->help : Qnil; |
| 741 | 741 | ||
| 742 | /* If popup_activated_flag is greater than 1 we are in a popup menu. | 742 | /* If popup_activated_flag is greater than 1 we are in a popup menu. |
| 743 | Don't show help for them, they won't appear before the | 743 | Don't pass the frame to show_help_event for those. |
| 744 | popup is popped down. */ | 744 | Passing frame creates an Emacs event. As we are looping in |
| 745 | if (popup_activated_flag <= 1) | 745 | popup_widget_loop, it won't be handeled. Passing NULL shows the tip |
| 746 | show_help_event (cb_data->cl_data->f, widget, help); | 746 | directly without using an Emacs event. This is what the Lucid code |
| 747 | does below. */ | ||
| 748 | show_help_event (popup_activated_flag <= 1 ? cb_data->cl_data->f : NULL, | ||
| 749 | widget, help); | ||
| 747 | } | 750 | } |
| 748 | #else | 751 | #else |
| 749 | static void | 752 | static void |