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/gui/panels | |
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/gui/panels')
-rw-r--r-- | src/gui/panels/glance.c | 2 | ||||
-rw-r--r-- | src/gui/panels/panel.c | 2 | ||||
-rw-r--r-- | src/gui/panels/symbols.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/panels/glance.c b/src/gui/panels/glance.c index 97d57d1..89acf5c 100644 --- a/src/gui/panels/glance.c +++ b/src/gui/panels/glance.c @@ -397,7 +397,7 @@ static void on_view_scroll_setup(GtkAdjustment *adj, GGlancePanel *panel) on_view_scrolled(adj, panel); - gtk_widget_size_request(GTK_WIDGET(panel->view), &panel->req); + gtk_widget_get_preferred_size(GTK_WIDGET(panel->view), NULL, &panel->req); update_glance_panel_for_view_content(panel, panel->view); diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c index 06be865..41d3b0a 100644 --- a/src/gui/panels/panel.c +++ b/src/gui/panels/panel.c @@ -895,7 +895,7 @@ static void get_panel_node_size_request(const panel_node *node, GtkRequisition * GtkRequisition tmp; /* Stockage temporaire */ if (node->simple) - gtk_widget_size_request(node->station, req); + gtk_widget_get_preferred_size(node->station, NULL, req); else { diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c index 4f92f1c..c106881 100644 --- a/src/gui/panels/symbols.c +++ b/src/gui/panels/symbols.c @@ -608,7 +608,7 @@ static void change_symbols_panel_current_binary(GSymbolsPanel *panel, GLoadedBin reorganize_symbols_tree_view(NULL, G_OBJECT(G_EDITOR_ITEM(panel)->widget)); } - gtk_widget_size_request(GTK_WIDGET(panel->treeview), &req); + gtk_widget_get_preferred_size(GTK_WIDGET(panel->treeview), NULL, &req); gtk_widget_set_size_request(GTK_WIDGET(panel->treeview), req.width, req.height); } |