Fixed GtkMenuItem to not access the menu->requisition but get the minimum size request instead.
This commit is contained in:
		@ -1932,6 +1932,7 @@ gtk_menu_item_position_menu (GtkMenu  *menu,
 | 
				
			|||||||
  gint vertical_offset;
 | 
					  gint vertical_offset;
 | 
				
			||||||
  gint parent_xthickness;
 | 
					  gint parent_xthickness;
 | 
				
			||||||
  gint available_left, available_right;
 | 
					  gint available_left, available_right;
 | 
				
			||||||
 | 
					  GtkRequisition requisition;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  g_return_if_fail (menu != NULL);
 | 
					  g_return_if_fail (menu != NULL);
 | 
				
			||||||
  g_return_if_fail (x != NULL);
 | 
					  g_return_if_fail (x != NULL);
 | 
				
			||||||
@ -1945,8 +1946,10 @@ gtk_menu_item_position_menu (GtkMenu  *menu,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  direction = gtk_widget_get_direction (widget);
 | 
					  direction = gtk_widget_get_direction (widget);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  twidth = GTK_WIDGET (menu)->requisition.width;
 | 
					  gtk_size_request_get_size (GTK_SIZE_REQUEST (menu), &requisition, NULL);
 | 
				
			||||||
  theight = GTK_WIDGET (menu)->requisition.height;
 | 
					
 | 
				
			||||||
 | 
					  twidth = requisition.width;
 | 
				
			||||||
 | 
					  theight = requisition.height;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  screen = gtk_widget_get_screen (GTK_WIDGET (menu));
 | 
					  screen = gtk_widget_get_screen (GTK_WIDGET (menu));
 | 
				
			||||||
  monitor_num = gdk_screen_get_monitor_at_window (screen, menu_item->event_window);
 | 
					  monitor_num = gdk_screen_get_monitor_at_window (screen, menu_item->event_window);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user