X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui.h;h=b8cd45c99325ed2be70818559f2a76f2265d1ffb;hb=cc35e177d57bc4ee2cc57ae25f130dfc168aa61d;hp=b78fab2bfce70b733f343dd7ad954f12bfbd3d3c;hpb=f8fe519c1b5454ba939ade2a4b60f0066fb6aa14;p=psensor.git diff --git a/src/ui.h b/src/ui.h index b78fab2..b8cd45c 100644 --- a/src/ui.h +++ b/src/ui.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2013 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 @@ -21,6 +21,8 @@ #include "config.h" +#include + #include #include @@ -30,8 +32,12 @@ #include "psensor.h" +#define PSENSOR_ICON "psensor" + struct ui_psensor { struct psensor **sensors; + /* mutex which MUST be used for accessing sensors.*/ + pthread_mutex_t sensors_mutex; GtkWidget *w_graph; @@ -56,8 +62,6 @@ struct ui_psensor { GtkWidget *sensor_box; int graph_update_interval; - - GMutex *sensors_mutex; }; /*