diff options
author | Burt P <pburt0@gmail.com> | 2019-07-26 12:11:59 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-29 19:43:53 -0700 |
commit | 08a74ce10aedafd1a9e2f3c411e5eeea3658f71d (patch) | |
tree | 1a5128b3e1e939a6833da3fa284d57eae2d9d5be /shell | |
parent | 4f9424cb55a1514a5a50ef29897e77f2c836a022 (diff) |
shell: strend('#') group label in new detail view
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/shell.c b/shell/shell.c index a8d2c926..75ee8300 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -1513,11 +1513,13 @@ static void module_selected_show_info_detail(GKeyFile *key_file, for (i = 0; groups[i]; i++) { gsize nkeys; gchar **keys = g_key_file_get_keys(key_file, groups[i], &nkeys, NULL); + gchar *group_label = g_strdup(groups[i]); + strend(group_label, '#'); if (entry && groups[i][0] == '$') { group_handle_special(key_file, entry, groups[i], keys); } else { - gchar *tmp = g_strdup_printf("<b>%s</b>", groups[i]); + gchar *tmp = g_strdup_printf("<b>%s</b>", group_label); GtkWidget *label = gtk_label_new(tmp); gtk_label_set_use_markup(GTK_LABEL(label), TRUE); GtkWidget *frame = gtk_frame_new(NULL); @@ -1600,6 +1602,7 @@ static void module_selected_show_info_detail(GKeyFile *key_file, } g_strfreev(keys); + g_free(group_label); } } |