Take the scroll arrow into account when drawing the background. (#393166,

2007-01-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
        account when drawing the background.  (#393166, Benjamin Berg)



svn path=/trunk/; revision=17084
This commit is contained in:
Matthias Clasen 2007-01-05 18:24:00 +00:00 committed by Matthias Clasen
parent e4dc23c48e
commit 9ee7338f60
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
account when drawing the background. (#393166, Benjamin Berg)
2007-01-05 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtklabel.c (get_layout_location): Fix broken width computation,

View File

@ -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);
}
}