[gtk+] Fix corner manipulation when growing rounded rects
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix corner manipulation when growing rounded rects
- Date: Tue, 12 Jan 2016 03:49:57 +0000 (UTC)
commit 52a34d32bb2e104de3ec242ee142ff22842909a4
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 11 22:48:35 2016 -0500
Fix corner manipulation when growing rounded rects
This addresses problems with uneven border radius',
pointed out by Lapo.
gtk/gtkroundedbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c
index b63b7d5..67aed7a 100644
--- a/gtk/gtkroundedbox.c
+++ b/gtk/gtkroundedbox.c
@@ -198,8 +198,8 @@ _gtk_rounded_box_grow (GtkRoundedBox *box,
}
gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_LEFT], left, top);
- gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, bottom);
- gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, top);
+ gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, top);
+ gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, bottom);
gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_LEFT], left, bottom);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]