From 08a74ce10aedafd1a9e2f3c411e5eeea3658f71d Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 26 Jul 2019 12:11:59 -0500 Subject: shell: strend('#') group label in new detail view Signed-off-by: Burt P --- shell/shell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell') 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("%s", groups[i]); + gchar *tmp = g_strdup_printf("%s", 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); } } -- cgit v1.2.3