str = psensor_value_to_string(s->type,
s->measures[s->values_max_length -
- 1].value);
+ 1].value.d_num);
+
gtk_list_store_set(GTK_LIST_STORE(model), &iter, COL_TEMP, str,
-1);
free(str);
for (node = columns; node; node = node->next) {
GtkTreeViewColumn *checkcol = (GtkTreeViewColumn *) node->data;
- if (x >= colx && x < (colx + checkcol->width))
+ if (x >= colx &&
+ x < (colx + gtk_tree_view_column_get_width(checkcol)))
return coli;
else
- colx += checkcol->width;
+ colx += gtk_tree_view_column_get_width(checkcol);
coli++;
}
gtk_tree_view_insert_column_with_attributes(ui_sl->treeview,
-1,
- _("Current"),
+ _("Value"),
renderer,
"text", COL_TEMP, NULL);