Don't unnecessarily call gtk_menu_position(), since that function has
2004-11-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenu.c (menu_change_screen): Don't unnecessarily call gtk_menu_position(), since that function has issues when called on a menu whose parent is unrealized. (#157354, Adam Hooper)
This commit is contained in:
committed by
Matthias Clasen
parent
03d1832a0f
commit
ab3fb67021
@@ -956,6 +956,12 @@ menu_change_screen (GtkMenu *menu,
|
||||
{
|
||||
GtkMenuPrivate *private = gtk_menu_get_private (menu);
|
||||
|
||||
if (gtk_widget_has_screen (menu))
|
||||
{
|
||||
if (new_screen == gtk_widget_get_screen (menu))
|
||||
return;
|
||||
}
|
||||
|
||||
if (menu->torn_off)
|
||||
{
|
||||
gtk_window_set_screen (GTK_WINDOW (menu->tearoff_window), new_screen);
|
||||
|
||||
Reference in New Issue
Block a user