diff options
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r-- | gtk/gtkmenu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index b8d4f5aa1c..1fdecc2a51 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -4079,14 +4079,10 @@ gtk_menu_move_current (GtkMenuShell *menu_shell, static gint get_visible_size (GtkMenu *menu) { - GtkAllocation allocation; - GtkWidget *widget = GTK_WIDGET (menu); GtkBorder arrow_border; gint menu_height; - gtk_widget_get_allocation (widget, &allocation); - - menu_height = allocation.height; + menu_height = gtk_widget_get_height (GTK_WIDGET (menu)); get_arrows_border (menu, &arrow_border); menu_height -= arrow_border.top; |