summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-22 12:48:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-22 12:48:21 (GMT)
commit40c139384b25e89f9308f0d493e1c9ff0318a3cb (patch)
tree78ee88982e39da05d7bc4b9f25a4835c75ded30f
parent5194dad10519504c6c7416d85c9191a0075f9af1 (diff)
Reorganized the symbol panel only when the treeview is connected to its model.
-rw-r--r--src/gui/panels/symbols.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index f016199..fa671a4 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -695,10 +695,7 @@ static void reload_symbols_panel_content(const GSymbolsPanel *panel, GtkStatusSt
reload_symbols_for_new_list_view(panel, status, id, data);
else
- {
reload_symbols_for_new_tree_view(panel, status, id, data);
- reorganize_symbols_tree_view(NULL, panel);
- }
}
@@ -1676,6 +1673,7 @@ static void g_symbols_panel_conclude(GSymbolsPanel *panel, unsigned int uid, sym
GtkTreeView *treeview; /* Arborescence graphique */
size_t i; /* Boucle de parcours */
GtkTreePath *path; /* Chemin d'accès à un noeud */
+ GtkToggleToolButton *button; /* Mode de représentation */
/* Mise à jour des compteurs */
@@ -1701,6 +1699,13 @@ static void g_symbols_panel_conclude(GSymbolsPanel *panel, unsigned int uid, sym
}
+ /* Réorganisation des symboles ? */
+
+ button = GTK_TOGGLE_TOOL_BUTTON(gtk_builder_get_object(builder, "list_display"));
+
+ if (!gtk_toggle_tool_button_get_active(button))
+ reorganize_symbols_tree_view(NULL, panel);
+
g_panel_item_switch_to_updated_content(G_PANEL_ITEM(panel));
}