]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkroundedbox.c
Do without GtkSelectionWindow
[~andy/gtk] / gtk / gtkroundedbox.c
index 4aeffcde055f10734b0f6aa398a6ab8b86b71a9d..653d27feefaa2008e2f0a5a1dac8171d3cfadad8 100644 (file)
@@ -171,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;
@@ -284,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;