summaryrefslogtreecommitdiff
path: root/src/gtkext/graph
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-11-10 18:00:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-11-10 18:00:23 (GMT)
commit85be5ab140bb90ca69e20323eb49999d8520af13 (patch)
tree0cda930b0d37f48f620efbce0e04f3f2de416bd6 /src/gtkext/graph
parentba5c517970f725903ae8b196b28f1a2eb7705536 (diff)
Provided a nice way to get a small preview of the current graph.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@280 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph')
-rw-r--r--src/gtkext/graph/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/graph/node.c b/src/gtkext/graph/node.c
index f3e6352..e2af8f7 100644
--- a/src/gtkext/graph/node.c
+++ b/src/gtkext/graph/node.c
@@ -252,13 +252,13 @@ void g_graph_node_place(GGraphNode *node, GtkGraphView *view, gint x, gint y)
x -= requisition.width / 2;
y -= requisition.height / 2;
- gtk_graph_view_put(view, node->view, x, y);
-
node->alloc.x = x;
node->alloc.y = y;
node->alloc.width = requisition.width;
node->alloc.height = requisition.height;
+ gtk_graph_view_put(view, node->view, &node->alloc);
+
}