projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c8de13
)
avoid to shadow var
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 07:15:18 +0000
(09:15 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 07:15:18 +0000
(09:15 +0200)
src/ui_sensorpref.c
patch
|
blob
|
history
diff --git
a/src/ui_sensorpref.c
b/src/ui_sensorpref.c
index
a5b5123
..
e71492c
100644
(file)
--- a/
src/ui_sensorpref.c
+++ b/
src/ui_sensorpref.c
@@
-336,6
+336,7
@@
select_sensor(struct psensor *s, struct psensor **sensors, GtkTreeView *tree)
struct psensor **s_cur;
int i;
GtkTreePath *p;
+ GtkTreeSelection *sel;
p = NULL;
for (s_cur = sensors, i = 0; *s_cur; s_cur++, i++)
@@
-345,9
+346,9
@@
select_sensor(struct psensor *s, struct psensor **sensors, GtkTreeView *tree)
}
if (p) {
-
GtkTreeSelection *s
= gtk_tree_view_get_selection(tree);
+
sel
= gtk_tree_view_get_selection(tree);
- gtk_tree_selection_select_path(s, p);
+ gtk_tree_selection_select_path(s
el
, p);
gtk_tree_path_free(p);
}
}