diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-15 14:18:58 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-15 14:18:58 +0000 |
commit | 4db081cacf5e5d9f45931396b1477ef03570f7c7 (patch) | |
tree | 8e8c7002001ff4b15c9e26ba26616fcefc29c6e2 /hardinfo2/shell.c | |
parent | 163dbca219f44b3e7a137a7c02474707b4d2bca6 (diff) |
Add hard disk temperature monitor
Diffstat (limited to 'hardinfo2/shell.c')
-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 66d83cf9..8f051241 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -546,7 +546,7 @@ static gboolean update_field(gpointer data) { ShellFieldUpdate *fu = (ShellFieldUpdate *) data; - + /* if the entry is still selected, update it */ if (fu->entry->selected && fu->entry->fieldfunc) { gchar *value = fu->entry->fieldfunc(fu->field_name); @@ -556,6 +556,7 @@ update_field(gpointer data) SHELL_VIEW_LOAD_GRAPH */ if (fu->loadgraph && shell->view_type == SHELL_VIEW_LOAD_GRAPH) { GtkTreeSelection *ts; + ts = gtk_tree_view_get_selection(GTK_TREE_VIEW (shell->info->view)); @@ -686,6 +687,11 @@ group_handle_special(GKeyFile * key_file, ShellModuleEntry * entry, fu->loadgraph = TRUE; g_timeout_add(ms, update_field, fu); + } else if (g_str_equal(key, "LoadGraphMaxValue")) { + gint max_value; + + max_value = g_key_file_get_integer(key_file, group, key, NULL); + load_graph_set_max(shell->loadgraph, max_value); } else if (g_str_equal(key, "ReloadInterval")) { gint ms; |