summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/cluster.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-18 09:36:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-18 09:36:12 (GMT)
commita37397e3fdbd88d4642135b9ee8696057ac60711 (patch)
treecfca83bf8b46d3bed2513b7d2844d32e98516ae4 /src/gtkext/graph/cluster.c
parent43d57853c6f2c59197c7dc20ff61f3f2eacc2445 (diff)
Simplified code thanks to visitors.
Diffstat (limited to 'src/gtkext/graph/cluster.c')
-rw-r--r--src/gtkext/graph/cluster.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtkext/graph/cluster.c b/src/gtkext/graph/cluster.c
index 444bd22..4d198a9 100644
--- a/src/gtkext/graph/cluster.c
+++ b/src/gtkext/graph/cluster.c
@@ -337,7 +337,7 @@ void g_graph_cluster_reset_allocation(GGraphCluster *cluster)
/* Propagation aux sous-blocs */
for (i = 0; i < cluster->ranks_count; i++)
- reset_graph_rank_allocation(&cluster->ranks[i]);
+ visit_graph_rank(&cluster->ranks[i], g_graph_cluster_reset_allocation);
}
@@ -754,7 +754,7 @@ void g_graph_cluster_setup_links(GGraphCluster *cluster)
/* Propagation de la mise en place */
for (i = 0; i < cluster->ranks_count; i++)
- setup_graph_rank_links(&cluster->ranks[i]);
+ visit_graph_rank(&cluster->ranks[i], g_graph_cluster_setup_links);
}
@@ -1277,7 +1277,7 @@ bool g_graph_cluster_dispatch_define_extra_offset(GGraphCluster *cluster)
g_graph_cluster_sort_leaving_links(parent);
for (i = 0; i < parent->ranks_count; i++)
- reset_graph_rank_allocation(&parent->ranks[i]);
+ visit_graph_rank(&parent->ranks[i], g_graph_cluster_reset_allocation);
g_graph_cluster_dispatch_x(parent);
@@ -1606,7 +1606,7 @@ void g_graph_cluster_sort_leaving_links(GGraphCluster *cluster)
reorder_graph_rank_clusters(&cluster->ranks[i], cluster);
for (i = 0; i < cluster->ranks_count; i++)
- reset_graph_rank_allocation(&cluster->ranks[i]);
+ visit_graph_rank(&cluster->ranks[i], g_graph_cluster_reset_allocation);
for (i = 0; i < cluster->ranks_count; i++)
offset_x_graph_rank(&cluster->ranks[i], cluster->alloc.x);