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)
This commit is contained in:
Matthias Clasen 2005-06-27 02:07:35 +00:00 committed by Matthias Clasen
parent 98a17d1462
commit 92e3227043
4 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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)
2005-06-26 Tor Lillqvist <tml@novell.com>
* gdk/Makefile.am

View File

@ -1,3 +1,9 @@
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)
2005-06-26 Tor Lillqvist <tml@novell.com>
* gdk/Makefile.am

View File

@ -1,3 +1,9 @@
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)
2005-06-26 Tor Lillqvist <tml@novell.com>
* gdk/Makefile.am

View File

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