Only cancel if the menu was active. (#314298, Christian Persch, analysis
2005-08-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
This commit is contained in:
committed by
Matthias Clasen
parent
47daaa2e88
commit
20816d91eb
@@ -1,3 +1,8 @@
|
||||
2005-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
|
||||
was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
|
||||
|
||||
2005-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2005-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
|
||||
was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
|
||||
|
||||
2005-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
|
||||
|
||||
@@ -4419,7 +4419,7 @@ gtk_menu_grab_notify (GtkWidget *widget,
|
||||
|
||||
if (!was_grabbed)
|
||||
{
|
||||
if (!GTK_IS_MENU_SHELL (grab))
|
||||
if (GTK_MENU_SHELL (widget)->active && !GTK_IS_MENU_SHELL (grab))
|
||||
gtk_menu_shell_cancel (GTK_MENU_SHELL (widget));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user