diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-09-30 00:32:29 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-09-30 00:32:29 +0000 |
commit | adef2ac1336e15a48132677792e1d3d9ce9a79ad (patch) | |
tree | 55ee480ea9b78b930c94e9e2000402b015dd2583 /gtk/gtktooltips.c | |
parent | da4c14de476bff59657d1fb72f28d087dd0c8921 (diff) | |
download | gtk+-adef2ac1336e15a48132677792e1d3d9ce9a79ad.tar.gz |
Disable tooltips for menu items with submenus .. they still don't really
Sun Sep 29 20:20:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Disable
tooltips for menu items with submenus .. they still
don't really work properly. (Missed merge from
stable)
Diffstat (limited to 'gtk/gtktooltips.c')
-rw-r--r-- | gtk/gtktooltips.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index c9a20b5dc6..41cfae5e29 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -590,7 +590,8 @@ gtk_tooltips_event_handler (GtkWidget *widget, /* do nothing */ break; case GDK_ENTER_NOTIFY: - gtk_tooltips_start_delay (tooltips, widget); + if (!(GTK_IS_MENU_ITEM (widget) && GTK_MENU_ITEM (widget)->submenu)) + gtk_tooltips_start_delay (tooltips, widget); break; case GDK_LEAVE_NOTIFY: @@ -608,7 +609,7 @@ gtk_tooltips_event_handler (GtkWidget *widget, /* Handle menu items specially ... pend popup for each motion * on other widgets, we ignore motion. */ - if (GTK_IS_MENU_ITEM (widget)) + if (GTK_IS_MENU_ITEM (widget) && !GTK_MENU_ITEM (widget)->submenu) { /* Completely evil hack to make sure we get the LEAVE_NOTIFY */ |