summaryrefslogtreecommitdiff
path: root/gtk/gtkrenderborder.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-13 21:00:28 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:10 +0100
commitf96f16899d7bf137593efe6b09571f44150ec67d (patch)
treeb5d62eae5f6cc9562b4a85900ea7ca1adb863ed8 /gtk/gtkrenderborder.c
parentfa9b0f9965d51327139745a2536a7f2fb002b01d (diff)
downloadgtk+-f96f16899d7bf137593efe6b09571f44150ec67d.tar.gz
roundedbox: Remove _gtk_rounded_box_path()
Use gsk_rounded_rect_path() instead. That's a private GSK function, be we can just include its header.
Diffstat (limited to 'gtk/gtkrenderborder.c')
-rw-r--r--gtk/gtkrenderborder.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index a848573a7f..7c418616a5 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -36,6 +36,8 @@
#include "gtkhslaprivate.h"
#include "gtkroundedboxprivate.h"
+#include "gsk/gskroundedrectprivate.h"
+
/* this is in case round() is not provided by the compiler,
* such as in the case of C89 compilers, like MSVC
*/
@@ -373,8 +375,8 @@ render_frame_fill (cairo_t *cr,
{
gdk_cairo_set_source_rgba (cr, &colors[0]);
- _gtk_rounded_box_path (border_box, cr);
- _gtk_rounded_box_path (&padding_box, cr);
+ gsk_rounded_rect_path (border_box, cr);
+ gsk_rounded_rect_path (&padding_box, cr);
cairo_fill (cr);
}
else
@@ -501,7 +503,7 @@ render_frame_stroke (cairo_t *cr,
length += _gtk_rounded_box_guess_length (&stroke_box, i);
}
- _gtk_rounded_box_path (&stroke_box, cr);
+ gsk_rounded_rect_path (&stroke_box, cr);
gdk_cairo_set_source_rgba (cr, &colors[0]);
set_stroke_style (cr, border_width[0], stroke_style, length);
cairo_stroke (cr);