From d4c67aee7445dfd55a54b0a7170e2f6c34d04505 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 1 Nov 2008 10:45:00 -0300 Subject: Disable list indentation (allow it only for trees) --- hardinfo2/shell.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hardinfo2') 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); -- cgit v1.2.3