X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=gtk%2Fgtkroundedbox.c;h=653d27feefaa2008e2f0a5a1dac8171d3cfadad8;hb=e1edc998a2e9c557030d207533932b3120e13fe5;hp=2b119824892e3b165cd903f751b6bf39de1bfab7;hpb=edbc8e4f57b871ee151443fe867f6e347682fe8d;p=~andy%2Fgtk diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index 2b1198248..653d27fee 100644 --- a/gtk/gtkroundedbox.c +++ b/gtk/gtkroundedbox.c @@ -152,6 +152,7 @@ gtk_css_border_radius_grow (GtkRoundedBoxCorner *corner, corner->vertical = 0; } } + void _gtk_rounded_box_grow (GtkRoundedBox *box, double top, @@ -170,7 +171,7 @@ _gtk_rounded_box_grow (GtkRoundedBox *box, box->box.width += left + right; } - if (box->box.height + bottom + right < 0) + if (box->box.height + bottom + top < 0) { box->box.y -= top * box->box.height / (top + bottom); box->box.height = 0; @@ -283,7 +284,7 @@ _gtk_rounded_box_guess_length (const GtkRoundedBox *box, GtkCssSide side) { double length; - GtkCssCorner before, after; + GtkCssSide before, after; before = side; after = (side + 1) % 4;