projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a342821
)
gtk3 support
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 8 May 2011 14:54:04 +0000
(14:54 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 8 May 2011 14:54:04 +0000
(14:54 +0000)
src/ui_sensorlist.c
patch
|
blob
|
history
diff --git
a/src/ui_sensorlist.c
b/src/ui_sensorlist.c
index
af830ae
..
53235fb
100644
(file)
--- a/
src/ui_sensorlist.c
+++ b/
src/ui_sensorlist.c
@@
-129,10
+129,11
@@
static int get_col_index_at_pos(GtkTreeView *view, int x)
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++;
}