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)
This commit is contained in:
Owen Taylor 2002-09-30 00:32:29 +00:00 committed by Owen Taylor
parent da4c14de47
commit adef2ac133
7 changed files with 45 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -1,3 +1,10 @@
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)
Sun Sep 29 20:15:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Clear

View File

@ -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
*/