projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style
[psensor.git]
/
src
/
ui_sensorlist.c
diff --git
a/src/ui_sensorlist.c
b/src/ui_sensorlist.c
index
3de10f7
..
f4aa6ec
100644
(file)
--- a/
src/ui_sensorlist.c
+++ b/
src/ui_sensorlist.c
@@
-149,10
+149,10
@@
static int get_col_index_at_pos(GtkTreeView *view, int x)
colx = 0;
coli = 0;
for (node = cols; node; node = node->next) {
colx = 0;
coli = 0;
for (node = cols; node; node = node->next) {
- checkcol = (GtkTreeViewColumn *)
node->data;
+ checkcol = (GtkTreeViewColumn *)node->data;
- if (x >= colx
&&
- x < (colx + gtk_tree_view_column_get_width(checkcol)))
+ if (x >= colx
+
&&
x < (colx + gtk_tree_view_column_get_width(checkcol)))
return coli;
else
colx += gtk_tree_view_column_get_width(checkcol);
return coli;
else
colx += gtk_tree_view_column_get_width(checkcol);