treeview: Use gtk_snapshot_append_border()

No need to construct the node manually.
This commit is contained in:
Benjamin Otte 2020-08-07 02:50:19 +02:00
parent 278fbcbbb4
commit 052962a760

View File

@ -13156,19 +13156,15 @@ gtk_treeview_snapshot_border (GtkSnapshot *snapshot,
const graphene_rect_t *rect)
{
GskRoundedRect rounded;
GskRenderNode *border_node;
gsk_rounded_rect_init_from_rect (&rounded, rect, 0);
#define BLACK { 0, 0, 0, 1 }
border_node = gsk_border_node_new (&rounded,
gtk_snapshot_append_border (snapshot,
&rounded,
(float[4]) { 1, 1, 1, 1 },
(GdkRGBA[4]) { BLACK, BLACK, BLACK, BLACK });
#undef BLACK
gtk_snapshot_append_node (snapshot, border_node);
gsk_render_node_unref (border_node);
}
/* KEEP IN SYNC WITH GTK_TREE_VIEW_BIN_EXPOSE */