summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/layout.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-05-12 18:55:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-05-12 18:55:55 (GMT)
commit4605b4ac4a04bb11bdf91d77e248656702774bde (patch)
tree4987c19b0f739ef7cb89ac80068233d6fb037819 /src/gtkext/graph/layout.c
parent46bcc7f122245f22772fd3e38d16e6afa7bd5881 (diff)
Ensured parent nodes are centered on their children when expected.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@534 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/layout.c')
-rw-r--r--src/gtkext/graph/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/graph/layout.c b/src/gtkext/graph/layout.c
index 1084578..13f6270 100644
--- a/src/gtkext/graph/layout.c
+++ b/src/gtkext/graph/layout.c
@@ -248,7 +248,7 @@ GGraphLayout *g_graph_layout_new(GInstrBlock *blocks, GtkBufferView **views, siz
for (i = 0; i < *depth; i++)
printf(" ");
- g_graph_node_get_pending_position(node, &pending_flag, (pending_position []) { { 0 } });
+ g_graph_node_get_pending_position(node, &pending_flag, NULL);
flags = flags_list[pending_flag];
alloc = g_graph_node_get_allocation(node);
@@ -261,7 +261,7 @@ GGraphLayout *g_graph_layout_new(GInstrBlock *blocks, GtkBufferView **views, siz
{
printf(" - rank = %u -", g_graph_node_get_rank(node));
- g_flow_block_get_boundary(g_flow_node_get_block(node), &first, &last);
+ g_flow_block_get_boundary(g_flow_node_get_block(G_FLOW_NODE(node)), &first, &last);
printf(" - 0x%08x <-> 0x%08x", first->range.addr.virtual, last->range.addr.virtual);
}