diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-06-27 02:07:35 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-06-27 02:07:35 +0000 |
commit | 92e3227043bb6c7ebf082b65d42b6a33ca7ac78e (patch) | |
tree | 755a1efeae97fdc88d5ca408ce7d423b9eed034b /gtk | |
parent | 98a17d14624e486433a84ade11db879a896f9a4b (diff) | |
download | gdk-pixbuf-92e3227043bb6c7ebf082b65d42b6a33ca7ac78e.tar.gz |
Pay attention to the scroll offset when drawing the box. (#308834, Tom von
2005-06-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
scroll offset when drawing the box. (#308834, Tom von
Schwerdtner)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmenu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index a9c0b4bf4..a1eae149b 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -1289,7 +1289,7 @@ gtk_menu_popup (GtkMenu *menu, GtkMenuPrivate *priv; g_return_if_fail (GTK_IS_MENU (menu)); - + widget = GTK_WIDGET (menu); menu_shell = GTK_MENU_SHELL (menu); priv = gtk_menu_get_private (menu); @@ -2502,7 +2502,8 @@ gtk_menu_paint (GtkWidget *widget, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "menu", - -border_x, -border_y, width, height); + - border_x, menu->scroll_offset - border_y, + width, height); } } |