projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3590dc
)
renamed static fcts
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 3 May 2011 22:04:11 +0000
(22:04 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 3 May 2011 22:04:11 +0000
(22:04 +0000)
src/ui_sensorlist.c
patch
|
blob
|
history
diff --git
a/src/ui_sensorlist.c
b/src/ui_sensorlist.c
index
148cddd
..
e666421
100644
(file)
--- a/
src/ui_sensorlist.c
+++ b/
src/ui_sensorlist.c
@@
-97,9
+97,7
@@
void ui_sensorlist_update(struct ui_sensorlist *list)
* <null> if none.
*/
static struct psensor *
* <null> if none.
*/
static struct psensor *
-ui_sensorlist_get_sensor_at_pos(GtkTreeView *view,
- int x,
- int y, struct psensor **sensors)
+get_sensor_at_pos(GtkTreeView *view, int x, int y, struct psensor **sensors)
{
GtkTreePath *path;
{
GtkTreePath *path;
@@
-119,7
+117,7
@@
ui_sensorlist_get_sensor_at_pos(GtkTreeView *view,
*
* -1 if none
*/
*
* -1 if none
*/
-static int
ui_sensorlist_
get_col_index_at_pos(GtkTreeView *view, int x)
+static int get_col_index_at_pos(GtkTreeView *view, int x)
{
GList *columns = gtk_tree_view_get_columns(view);
GList *node;
{
GList *columns = gtk_tree_view_get_columns(view);
GList *node;
@@
-306,14
+304,14
@@
cb_sensor_line_clicked(GtkWidget *widget,
struct ui_sensorlist *list = (struct ui_sensorlist *)data;
GtkTreeView *view = GTK_TREE_VIEW(list->widget);
struct ui_sensorlist *list = (struct ui_sensorlist *)data;
GtkTreeView *view = GTK_TREE_VIEW(list->widget);
- struct psensor *sensor =
ui_sensorlist_
get_sensor_at_pos(view,
-
event->x,
-
event->y,
-
list->sensors);
+ struct psensor *sensor = get_sensor_at_pos(view,
+ event->x,
+ event->y,
+ list->sensors);
if (sensor) {
if (sensor) {
- int coli = col_index_to_col(
ui_sensorlist_get_col_index_at_pos
-
(view,
event->x));
+ int coli = col_index_to_col(
get_col_index_at_pos(view,
+
event->x));
if (coli == COL_COLOR) {
if (ui_change_color(_("Select foreground color"),
if (coli == COL_COLOR) {
if (ui_change_color(_("Select foreground color"),