diff options
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); } |