summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-12 22:26:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-12 22:26:49 (GMT)
commit7e1c5ac72a317d39952843239023c0fa506f2322 (patch)
tree206b4f7ca4165c22b796d90e3343f677296b0857 /src/gui/panels
parent254254db8c09eb4b4f8523e73551c13ec281d194 (diff)
Cleaned the code handling binary symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@548 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/strings.c2
-rw-r--r--src/gui/panels/symbols.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 825c510..7996553 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -687,7 +687,7 @@ static void on_string_value_edited(GtkCellRendererText *renderer, gchar *path, g
gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, STC_STRING, &symbol, -1);
- g_binary_symbol_set_label(symbol, new);
+ g_binary_symbol_set_alt_label(symbol, new);
g_object_unref(G_OBJECT(symbol));
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index 42098c8..9b32aa5 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -680,7 +680,7 @@ static void reload_symbols_for_new_list_view(GSymbolsPanel *panel)
gtk_tree_store_set(panel->store, &iter,
SBC_SYMBOL, symbols[i],
SBC_PICTURE, icon,
- SBC_NAME, g_binary_symbol_to_string(symbols[i]),
+ SBC_NAME, g_binary_symbol_get_label(symbols[i]),
SBC_ADDRESS, virt,
-1);
@@ -861,7 +861,7 @@ static void reload_symbols_for_new_tree_view(GSymbolsPanel *panel)
gtk_tree_store_set(panel->store, &iter,
SBC_SYMBOL, symbols[i],
SBC_PICTURE, icon,
- SBC_NAME, g_binary_symbol_to_string(symbols[i]),
+ SBC_NAME, g_binary_symbol_get_label(symbols[i]),
SBC_ADDRESS, virt,
-1);
@@ -1052,7 +1052,7 @@ static bool is_symbol_filtered(GSymbolsPanel *panel, const GBinSymbol *symbol)
if (panel->filter == NULL)
return false;
- ret = regexec(panel->filter, g_binary_symbol_to_string(symbol), 1, &match, 0);
+ ret = regexec(panel->filter, g_binary_symbol_get_label(symbol), 1, &match, 0);
if (ret == REG_NOMATCH)
return true;