summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-07-12 21:39:49 +0200
committerBenjamin Otte <otte@redhat.com>2015-07-16 06:15:13 +0200
commit6e4f42f97e4b61d9fb2c3e8ecc0ac9baa3eb890b (patch)
treefe6397faf7a322a2f372bfe45b63d0c817d05697 /gtk/gtkflowbox.c
parent79f2400c0dd769755b8e2034a9d574f567987c0d (diff)
downloadgtk+-6e4f42f97e4b61d9fb2c3e8ecc0ac9baa3eb890b.tar.gz
cssnode: Change API of some functions
gtk_css_node_set_after/before() are now called gtk_css_node_insert_after/before(). This brings them in line with other similar APIs (ie GtkListStore). And it allows easier usage of the API (see changes to gtkbox.c).
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r--gtk/gtkflowbox.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 7fe339d756..8a593275ea 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -4013,18 +4013,16 @@ gtk_flow_box_insert_css_node (GtkFlowBox *box,
GSequenceIter *iter)
{
GSequenceIter *prev_iter;
- GtkCssNode *child_node;
- GtkCssNode *sibling_node;
GtkWidget *sibling;
- child_node = gtk_widget_get_css_node (child);
prev_iter = g_sequence_iter_prev (iter);
if (prev_iter != iter)
{
sibling = g_sequence_get (prev_iter);
- sibling_node = gtk_widget_get_css_node (sibling);
- gtk_css_node_set_after (child_node, sibling_node);
+ gtk_css_node_insert_after (gtk_widget_get_css_node (GTK_WIDGET (box)),
+ gtk_widget_get_css_node (child),
+ gtk_widget_get_css_node (sibling));
}
}
@@ -4843,7 +4841,9 @@ gtk_flow_box_css_node_foreach (gpointer data,
{
prev_node = gtk_widget_get_css_node (*previous);
row_node = gtk_widget_get_css_node (row);
- gtk_css_node_set_after (row_node, prev_node);
+ gtk_css_node_insert_after (gtk_css_node_get_parent (row_node),
+ row_node,
+ prev_node);
}
*previous = row;