diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-09-05 06:12:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-09-05 06:12:23 (GMT) |
commit | d7f0eeafe11369f20f001e43570a58a712af83f2 (patch) | |
tree | 2567ece43d30ef802fce8026a3d7c9e1a936579d /src/gtkext/graph/nodes | |
parent | fc7a3dfb87fba9ae031cb52fa5951e00c409b07e (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/graph/nodes')
-rw-r--r-- | src/gtkext/graph/nodes/flow.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |