aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-12-28 02:26:34 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-12-28 02:26:34 +0000
commitaff26148a2444130a4418fbfbe75501bbda94cb8 (patch)
treeab2811862c61544de469083f4b3a7f75f26247e8 /hardinfo2/shell.c
parent7b673c5ff4ac992ad6877fc8beb9001766a720c5 (diff)
More fixes. Should be 100% working by now ;P
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 9ceea6a2..96458758 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -557,7 +557,7 @@ update_field(gpointer data)
if (iter) {
GtkTreeStore *store = GTK_TREE_STORE(shell->info->model);
- gtk_tree_store_set(store, iter, INFO_TREE_COL_VALUE, value, -1);
+ gtk_tree_store_set(store, iter, INFO_TREE_COL_VALUE, g_strchug(value), -1);
g_free(value);
return TRUE;
@@ -754,7 +754,7 @@ group_handle_normal(GKeyFile * key_file, ShellModuleEntry * entry,
} else {
gtk_tree_store_append(store, &child, &parent);
}
- gtk_tree_store_set(store, &child, INFO_TREE_COL_VALUE, value, -1);
+ gtk_tree_store_set(store, &child, INFO_TREE_COL_VALUE, g_strchug(value), -1);
strend(key, '#');
@@ -802,7 +802,7 @@ moreinfo_handle_normal(GKeyFile * key_file, gchar * group, gchar ** keys)
strend(key, '#');
gtk_tree_store_append(store, &child, &parent);
- gtk_tree_store_set(store, &child, INFO_TREE_COL_VALUE, value,
+ gtk_tree_store_set(store, &child, INFO_TREE_COL_VALUE, g_strchug(value),
INFO_TREE_COL_NAME, key, -1);
}
@@ -858,7 +858,8 @@ update_progress()
cur = 100 - 100 * atof(tmp) / maxv + 100 - maxp;
- gtk_tree_store_set(store, &iter, INFO_TREE_COL_PROGRESS, cur, -1);
+ gtk_tree_store_set(store, &iter,
+ INFO_TREE_COL_PROGRESS, cur, -1);
g_free(tmp);
} while (gtk_tree_model_iter_next(model, &iter));
@@ -1094,6 +1095,8 @@ info_tree_new(gboolean extra)
gtk_tree_view_column_pack_start(column, cr_progress, TRUE);
gtk_tree_view_column_add_attribute(column, cr_progress, "value",
INFO_TREE_COL_PROGRESS);
+ gtk_tree_view_column_add_attribute(column, cr_progress, "text",
+ INFO_TREE_COL_VALUE);
gtk_tree_view_column_set_visible(column, FALSE);
if (!extra) {