projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright to 2013
[psensor.git]
/
src
/
ui.h
diff --git
a/src/ui.h
b/src/ui.h
index
5de8448
..
b8cd45c
100644
(file)
--- a/
src/ui.h
+++ b/
src/ui.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
1
jeanfi@gmail.com
+ * Copyright (C) 2010-201
3
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
*
* 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 "config.h"
+#include <pthread.h>
+
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@
-30,8
+32,12
@@
#include "psensor.h"
#include "psensor.h"
+#define PSENSOR_ICON "psensor"
+
struct ui_psensor {
struct psensor **sensors;
struct ui_psensor {
struct psensor **sensors;
+ /* mutex which MUST be used for accessing sensors.*/
+ pthread_mutex_t sensors_mutex;
GtkWidget *w_graph;
GtkWidget *w_graph;
@@
-56,17
+62,6
@@
struct ui_psensor {
GtkWidget *sensor_box;
int graph_update_interval;
GtkWidget *sensor_box;
int graph_update_interval;
-
- GMutex *sensors_mutex;
-
-#ifdef HAVE_LIBNOTIFY
- /* Time of the last notification */
- struct timeval *notification_last_time;
-#endif
-
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
- AppIndicator *indicator;
-#endif
};
/*
};
/*
@@
-79,6
+74,9
@@
struct ui_psensor {
*/
void ui_window_update(struct ui_psensor *);
*/
void ui_window_update(struct ui_psensor *);
+/* Show the main psensor window. */
+void ui_window_show(struct ui_psensor *);
+
/* Must be called to terminate Psensor UI. */
void ui_psensor_quit(struct ui_psensor *ui);
/* Must be called to terminate Psensor UI. */
void ui_psensor_quit(struct ui_psensor *ui);
@@
-89,4
+87,6
@@
void ui_menu_bar_show(unsigned int show, struct ui_psensor *ui);
void ui_show_about_dialog();
void ui_show_about_dialog();
+void ui_enable_alpha_channel(struct ui_psensor *ui);
+
#endif
#endif