Use existing window size when painting the flat box instead of

2008-04-25  Björn Lindqvist  <bjourne@gmail.com>

	* gtk/gtkentry.c: (gtk_entry_expose) Use existing window size when
	painting the flat box instead of recalculating it. (#437493,
	Ricardo Cruz)

svn path=/trunk/; revision=20045
This commit is contained in:
Björn Lindqvist 2008-04-25 21:56:50 +00:00 committed by Björn Lindqvist
parent 23689688bc
commit 8b8b77b040
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-04-25 Björn Lindqvist <bjourne@gmail.com>
* gtk/gtkentry.c: (gtk_entry_expose) Use existing window size when
painting the flat box instead of recalculating it. (#437493,
Ricardo Cruz)
2008-04-25 Michael Emmel <mike.emmel@gmail.com>
Bug 529841 incorrect position in directfb

View File

@ -1575,8 +1575,7 @@ gtk_entry_expose (GtkWidget *widget,
else if (entry->text_area == event->window)
{
gint area_width, area_height;
get_text_area_size (entry, NULL, NULL, &area_width, &area_height);
gdk_drawable_get_size (entry->text_area, &area_width, &area_height);
gtk_paint_flat_box (widget->style, entry->text_area,
GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,