From 9ee7338f603241d13be11affc642c5925140ca56 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Jan 2007 18:24:00 +0000 Subject: Take the scroll arrow into account when drawing the background. (#393166, 2007-01-05 Matthias Clasen * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into account when drawing the background. (#393166, Benjamin Berg) svn path=/trunk/; revision=17084 --- gtk/gtkmenu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gtk/gtkmenu.c') diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 70f9f9b4e..291f31a9a 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -2512,12 +2512,17 @@ gtk_menu_paint (GtkWidget *widget, } else if (event->window == menu->bin_window) { + gint y = -border_y + menu->scroll_offset; + + if (menu->upper_arrow_visible && !menu->tearoff_active) + y -= scroll_arrow_height; + gtk_paint_box (widget->style, menu->bin_window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "menu", - - border_x, menu->scroll_offset - border_y, + - border_x, y, width, height); } } -- cgit v1.2.1