summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-09-05 06:12:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-09-05 06:12:23 (GMT)
commitd7f0eeafe11369f20f001e43570a58a712af83f2 (patch)
tree2567ece43d30ef802fce8026a3d7c9e1a936579d /src/gtkext
parentfc7a3dfb87fba9ae031cb52fa5951e00c409b07e (diff)
Removed some warnings by using gtk_widget_get_preferred_size() instead of the deprecated gtk_widget_size_request().
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@399 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-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;