diff options
author | Timm Bäder <mail@baedert.org> | 2018-07-20 19:19:37 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-08-05 10:22:10 +0200 |
commit | b749fe4270edf4b74a87ffaab4b623db3df61225 (patch) | |
tree | 7c75f1b128b03cf311c4ede097ac01ac58bac463 /gtk/gtkmenu.c | |
parent | 933cb857cf25a614af212e8d775b33a1195b6a8e (diff) | |
download | gtk+-b749fe4270edf4b74a87ffaab4b623db3df61225.tar.gz |
menu: Use correct content height
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; |