summaryrefslogtreecommitdiff
path: root/gtk/gtkrenderborder.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-02-21 02:11:13 +0100
committerBenjamin Otte <otte@redhat.com>2019-02-21 19:47:28 +0100
commite1570e9ebc1e8b7600514958355550cd804abca6 (patch)
tree91d96d64fe7cb2b3413d4001b5089427f172ad11 /gtk/gtkrenderborder.c
parent4a293aa762630bbf798f255dd6dc0a828db50344 (diff)
downloadgtk+-e1570e9ebc1e8b7600514958355550cd804abca6.tar.gz
snapshot: Add gtk_snapshot_append_border()
This is adding functions for the remaining render nodes.
Diffstat (limited to 'gtk/gtkrenderborder.c')
-rw-r--r--gtk/gtkrenderborder.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index 08a05f692f..d39c736ff8 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -342,10 +342,6 @@ snapshot_frame_fill (GtkSnapshot *snapshot,
const GdkRGBA colors[4],
guint hidden_side)
{
- GskRoundedRect offset_outline;
- GskRenderNode *node;
- int off_x, off_y;
-
if (hidden_side)
{
GdkRGBA real_colors[4];
@@ -363,13 +359,7 @@ snapshot_frame_fill (GtkSnapshot *snapshot,
return;
}
- gtk_snapshot_get_offset (snapshot, &off_x, &off_y);
- gsk_rounded_rect_init_copy (&offset_outline, outline);
- gsk_rounded_rect_offset (&offset_outline, off_x, off_y);
-
- node = gsk_border_node_new (&offset_outline, border_width, colors);
- gtk_snapshot_append_node_internal (snapshot, node);
- gsk_render_node_unref (node);
+ gtk_snapshot_append_border (snapshot, outline, border_width, colors);
}
static void