Fix a crash in menu code

https://bugzilla.gnome.org/show_bug.cgi?id=631311
This commit is contained in:
Christian Persch 2010-10-04 10:36:43 -04:00 committed by Matthias Clasen
parent 21eae6b6f3
commit f0039aa2a4

View File

@ -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)
{