diff options
author | Leandro Pereira <leandro@daileon.acd.puc-campinas.edu.br> | 2008-10-30 12:39:31 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@daileon.acd.puc-campinas.edu.br> | 2008-10-30 12:39:31 -0200 |
commit | 74e401413476dd683d978f1e2d11dfc16200a667 (patch) | |
tree | 820ab0fd8faa8679a933ad1eee2a0ee727525db6 /hardinfo2 | |
parent | 61a8193da4f41a95852ab0bebc1afb0fab382f28 (diff) |
:/
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/shell.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 2f4cc2aa..99c575e9 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1070,6 +1070,7 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) GKeyFile *key_file = g_key_file_new(); GtkTreeStore *store; gchar *key_data, **groups; + gboolean has_shell_param = FALSE; gint i; gsize ngroups; @@ -1125,13 +1126,18 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) if (*group == '$') { group_handle_special(key_file, entry, group, keys); + has_shell_param = TRUE; } else { group_handle_normal(key_file, entry, group, keys, ngroups); } g_strfreev(keys); } - + + if (!has_shell_param) { + gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(shell->info->view), FALSE); + } + g_object_unref(shell->info->model); gtk_tree_view_set_model(GTK_TREE_VIEW(shell->info->view), shell->info->model); gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->info->view)); |