when extending the draw rectangle by the "draw-border" style property,

2008-09-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending
	the draw rectangle by the "draw-border" style property, subtract
	"left" from "x" and "top" from "y", not the other way around.


svn path=/trunk/; revision=21285
This commit is contained in:
Michael Natterer 2008-09-04 11:10:29 +00:00 committed by Michael Natterer
parent 300f282076
commit 5e25a5c7ca
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2008-09-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending
the draw rectangle by the "draw-border" style property, subtract
"left" from "x" and "top" from "y", not the other way around.
2008-09-03 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c:

View File

@ -3493,13 +3493,13 @@ gtk_widget_get_draw_rectangle (GtkWidget *widget,
*rect = widget->allocation;
gtk_widget_style_get (widget,
gtk_widget_style_get (widget,
"draw-border", &draw_border,
NULL);
if (draw_border)
{
rect->x -= draw_border->top;
rect->y -= draw_border->left;
rect->x -= draw_border->left;
rect->y -= draw_border->top;
rect->width += draw_border->left + draw_border->right;
rect->height += draw_border->top + draw_border->bottom;