summaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-05-20 19:59:34 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-05-20 19:59:34 +0000
commitd056982a830fbebe98966876697ec724d01c14a6 (patch)
tree27cb8664cdc902dd6470999bb3ad8b3f2e48e64f /hardinfo2/shell.c
parent4332965fb8e9ae659e8b6546dbaf3ea41e091d24 (diff)
Display immediately fields whose values are "...", if possible.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index ed73cfa7..90e5722f 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -734,6 +734,10 @@ group_handle_normal(GKeyFile * key_file, ShellModuleEntry * entry,
GtkTreeIter child;
value = g_key_file_get_value(key_file, group, key, NULL);
+ if (g_str_equal(value, "...") && entry->fieldfunc) {
+ g_free(value);
+ value = entry->fieldfunc(key);
+ }
if (g_utf8_validate(key, -1, NULL) && g_utf8_validate(value, -1, NULL)) {
gtk_tree_store_append(store, &child, &parent);