forked from AuroraMiddleware/gtk
Fix a crash in menu code
https://bugzilla.gnome.org/show_bug.cgi?id=631311
This commit is contained in:
parent
21eae6b6f3
commit
f0039aa2a4
@ -5474,7 +5474,7 @@ get_menu_height (GtkMenu *menu)
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
|
||||
height = allocation.height;
|
||||
height -= gtk_container_get_border_width (GTK_CONTAINER (widget) + gtk_widget_get_style (widget)->ythickness) * 2;
|
||||
height -= gtk_container_get_border_width (GTK_CONTAINER (widget)) + gtk_widget_get_style (widget)->ythickness * 2;
|
||||
|
||||
if (!menu->tearoff_active)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user