]> Pileus Git - ~andy/gtk/commitdiff
themingengine: set the right coordinates for the rounded box rect
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 11 Jun 2011 17:32:15 +0000 (13:32 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Sat, 11 Jun 2011 17:32:15 +0000 (13:32 -0400)
gtk/gtkthemingengine.c

index 47f6b9a5751dad1e4bdf0424a14bd2388114869a..2e8d0ae47eaa2fa94a9cc000899dcb6b16c6cc52 100644 (file)
@@ -1689,7 +1689,7 @@ render_frame_internal (GtkThemingEngine *engine,
 
   cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD);
 
-  _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
+  _gtk_rounded_box_init_rect (&border_box, x, y, width, height);
   _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
   padding_box = border_box;
   _gtk_rounded_box_shrink (&padding_box, border.top, border.right, border.bottom, border.left);