forked from AuroraMiddleware/gtk
menu: Use correct content height
This commit is contained in:
parent
933cb857cf
commit
b749fe4270
@ -4079,14 +4079,10 @@ gtk_menu_move_current (GtkMenuShell *menu_shell,
|
|||||||
static gint
|
static gint
|
||||||
get_visible_size (GtkMenu *menu)
|
get_visible_size (GtkMenu *menu)
|
||||||
{
|
{
|
||||||
GtkAllocation allocation;
|
|
||||||
GtkWidget *widget = GTK_WIDGET (menu);
|
|
||||||
GtkBorder arrow_border;
|
GtkBorder arrow_border;
|
||||||
gint menu_height;
|
gint menu_height;
|
||||||
|
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
menu_height = gtk_widget_get_height (GTK_WIDGET (menu));
|
||||||
|
|
||||||
menu_height = allocation.height;
|
|
||||||
|
|
||||||
get_arrows_border (menu, &arrow_border);
|
get_arrows_border (menu, &arrow_border);
|
||||||
menu_height -= arrow_border.top;
|
menu_height -= arrow_border.top;
|
||||||
|
Loading…
Reference in New Issue
Block a user