mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
e4dc23c48e
commit
9ee7338f60
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user