diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-05-20 17:06:41 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-05-20 17:06:41 +0000 |
commit | a80d4be5a45a7671f6757068a3294e3d7d401e50 (patch) | |
tree | 1975e995f690f7ef00c5446b047efe59b9767c9b /gtk | |
parent | 0b12fe101b25bab06f175d0c060891014271e224 (diff) | |
download | gtk+-a80d4be5a45a7671f6757068a3294e3d7d401e50.tar.gz |
Set the private LEAVE_PENDING flag to fix problem where with menu items
Mon May 20 12:59:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.c: Set the private LEAVE_PENDING
flag to fix problem where with menu items with
submenus, tooltips were getting stuck. (Effectively
disables tooltips for menu items with submenus.)
(Bug #75961, Soeren Sandmann)
* tests/testgtk.c: Set a tooltip on a menu item
with a submenu.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktooltips.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index 20bc1fec64..c9a20b5dc6 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -31,6 +31,7 @@ #include "gtklabel.h" #include "gtkmain.h" #include "gtkmenuitem.h" +#include "gtkprivate.h" #include "gtkwidget.h" #include "gtkwindow.h" #include "gtksignal.h" @@ -609,6 +610,9 @@ gtk_tooltips_event_handler (GtkWidget *widget, */ if (GTK_IS_MENU_ITEM (widget)) { + /* Completely evil hack to make sure we get the LEAVE_NOTIFY + */ + GTK_PRIVATE_SET_FLAG (widget, GTK_LEAVE_PENDING); gtk_tooltips_set_active_widget (tooltips, NULL); gtk_tooltips_start_delay (tooltips, widget); break; |