/*
- Copyright (C) 2010-2011 wpitchoune@gmail.com
+ Copyright (C) 2010-2011 jeanfi@gmail.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
struct psensor *sensor;
};
-int col_index_to_col(int idx)
+static int col_index_to_col(int idx)
{
if (idx == 5)
return COL_ENABLED;
*
* <null> if none.
*/
-struct psensor *ui_sensorlist_get_sensor_at_pos(GtkTreeView * view,
- int x,
- int y, struct psensor **sensors)
+static struct psensor *
+ui_sensorlist_get_sensor_at_pos(GtkTreeView *view,
+ int x,
+ int y, struct psensor **sensors)
{
GtkTreePath *path;
*
* -1 if none
*/
-int ui_sensorlist_get_col_index_at_pos(GtkTreeView *view, int x)
+static int ui_sensorlist_get_col_index_at_pos(GtkTreeView *view, int x)
{
GList *columns = gtk_tree_view_get_columns(view);
GList *node;
gtk_widget_destroy(GTK_WIDGET(diag));
}
-GtkWidget *create_sensor_popup(struct ui_sensorlist *ui_sensorlist,
- struct psensor *sensor)
+static GtkWidget *create_sensor_popup(struct ui_sensorlist *ui_sensorlist,
+ struct psensor *sensor)
{
GtkWidget *menu;
GtkWidget *item;
return menu;
}
-int
+static int
cb_sensor_line_clicked(GtkWidget *widget,
GdkEventButton *event, gpointer data)
{
return FALSE;
}
-void
+static void
ui_sensorlist_on_toggled(GtkCellRendererToggle *cell,
gchar *path_str, gpointer data)
{