gtk+ r21363 - in branches/gtk-2-12: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21363 - in branches/gtk-2-12: . gtk
- Date: Fri, 12 Sep 2008 04:07:34 +0000 (UTC)
Author: matthiasc
Date: Fri Sep 12 04:07:34 2008
New Revision: 21363
URL: http://svn.gnome.org/viewvc/gtk+?rev=21363&view=rev
Log:
* 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.
Noticed by Michael Natterer
Modified:
branches/gtk-2-12/ChangeLog
branches/gtk-2-12/gtk/gtkwidget.c
Modified: branches/gtk-2-12/gtk/gtkwidget.c
==============================================================================
--- branches/gtk-2-12/gtk/gtkwidget.c (original)
+++ branches/gtk-2-12/gtk/gtkwidget.c Fri Sep 12 04:07:34 2008
@@ -3455,8 +3455,8 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]