summaryrefslogtreecommitdiff
path: root/src/gui/panels/symbols.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-10-07 16:00:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-10-07 16:00:59 (GMT)
commitb75a1889afa207051395b0288890b5b197c87b75 (patch)
treea22e9506a9fabb7791a96c1d32bf67c0fda65a3e /src/gui/panels/symbols.c
parentfa83bc71888fed39bcc77ad610ffd6f6980444f8 (diff)
Tried to resize the panels when the editor is resized.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@265 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/panels/symbols.c')
-rw-r--r--src/gui/panels/symbols.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index 6cc391f..63864d3 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -386,6 +386,7 @@ static void on_symbols_selection_change(GtkTreeSelection *selection, GSymbolsPan
void change_symbols_panel_current_binary(GSymbolsPanel *panel, GLoadedBinary *binary)
{
GtkToggleToolButton *button; /* Mode de représentation */
+ GtkRequisition req; /* Nouvelle taille idéale */
if (panel->binary != NULL)
g_object_unref(G_OBJECT(panel->binary));
@@ -405,6 +406,9 @@ void change_symbols_panel_current_binary(GSymbolsPanel *panel, GLoadedBinary *bi
reorganize_symbols_tree_view(NULL, G_OBJECT(G_EDITOR_ITEM(panel)->widget));
}
+ gtk_widget_size_request(GTK_WIDGET(panel->treeview), &req);
+ gtk_widget_set_size_request(GTK_WIDGET(panel->treeview), req.width, req.height);
+
}