updated copyright to 2013
[psensor.git] / src / ui.h
index b78fab2..b8cd45c 100644 (file)
--- 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 <pthread.h>
+
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 
 
 #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;
 };
 
 /*