diff options
Diffstat (limited to 'src/gtkext/graph/node.c')
-rw-r--r-- | src/gtkext/graph/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/graph/node.c b/src/gtkext/graph/node.c index 92d3b8c..f286457 100644 --- a/src/gtkext/graph/node.c +++ b/src/gtkext/graph/node.c @@ -598,7 +598,7 @@ char *g_graph_node_register_for_dot(const GGraphNode *node, char *cmds, unsigned unsigned int i; /* Boucle de parcours */ char buffer[NODE_DESC_LEN]; /* Tampon pour les commandes */ - gtk_widget_size_request(node->view, &requisition); + gtk_widget_get_preferred_size(node->view, NULL, &requisition); for (i = 0; i < level; i++) cmds = stradd(cmds, DOT_IDENT); @@ -656,7 +656,7 @@ void g_graph_node_place_old(GGraphNode *node, GtkGraphView *view, gint x, gint y { GtkRequisition requisition; /* Taille à l'écran actuelle */ - gtk_widget_size_request(node->view, &requisition); + gtk_widget_get_preferred_size(node->view, NULL, &requisition); x -= requisition.width / 2; y -= requisition.height / 2; |