summaryrefslogtreecommitdiff
path: root/src/gtkext/graph
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/graph')
-rw-r--r--src/gtkext/graph/node.c4
-rw-r--r--src/gtkext/graph/nodes/flow.c2
2 files changed, 3 insertions, 3 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;
diff --git a/src/gtkext/graph/nodes/flow.c b/src/gtkext/graph/nodes/flow.c
index 71d6e41..7ebaf78 100644
--- a/src/gtkext/graph/nodes/flow.c
+++ b/src/gtkext/graph/nodes/flow.c
@@ -242,7 +242,7 @@ GGraphNode *g_flow_node_new(GFlowBlock *block, GtkBufferView *view)
result->block = block;
result->view = view;
- gtk_widget_size_request(GTK_WIDGET(result->view), &requisition);
+ gtk_widget_get_preferred_size(GTK_WIDGET(result->view), NULL, &requisition);
G_GRAPH_NODE(result)->alloc.width = requisition.width;
G_GRAPH_NODE(result)->alloc.height = requisition.height;