diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 10:45:00 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 10:45:00 -0300 |
commit | d4c67aee7445dfd55a54b0a7170e2f6c34d04505 (patch) | |
tree | 2c16131f1dfb6af575c378087eb1edcbd3a765ce /hardinfo2 | |
parent | b0b5ac94457ada220fe7fa0664346ef77da241d9 (diff) |
Disable list indentation (allow it only for trees)
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/shell.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 1883c7bc..403bae8b 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1164,6 +1164,16 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) update_progress(); } +#if GTK_CHECK_VERSION(2,12,0) + if (ngroups == 1) { + gtk_tree_view_set_show_expanders(GTK_TREE_VIEW(shell->info->view), + FALSE); + } else { + gtk_tree_view_set_show_expanders(GTK_TREE_VIEW(shell->info->view), + TRUE); + } +#endif + g_strfreev(groups); g_key_file_free(key_file); g_free(key_data); |