From: Jean-Philippe Orsini Date: Tue, 3 May 2011 22:01:26 +0000 (+0000) Subject: added static to fcts X-Git-Tag: v0.8.0.5~789 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=b3590dc20c137ad586577052f5e599f8dc010e31 added static to fcts --- diff --git a/src/ui_sensorlist.c b/src/ui_sensorlist.c index f563050..148cddd 100644 --- a/src/ui_sensorlist.c +++ b/src/ui_sensorlist.c @@ -45,7 +45,7 @@ struct cb_data { struct psensor *sensor; }; -int col_index_to_col(int idx) +static int col_index_to_col(int idx) { if (idx == 5) return COL_ENABLED; @@ -96,9 +96,10 @@ void ui_sensorlist_update(struct ui_sensorlist *list) * * 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; @@ -118,7 +119,7 @@ struct psensor *ui_sensorlist_get_sensor_at_pos(GtkTreeView * view, * * -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; @@ -298,7 +299,7 @@ static GtkWidget *create_sensor_popup(struct ui_sensorlist *ui_sensorlist, return menu; } -int +static int cb_sensor_line_clicked(GtkWidget *widget, GdkEventButton *event, gpointer data) { @@ -334,7 +335,7 @@ cb_sensor_line_clicked(GtkWidget *widget, return FALSE; } -void +static void ui_sensorlist_on_toggled(GtkCellRendererToggle *cell, gchar *path_str, gpointer data) {