projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
defined sensors box, sensors list and graph widgets in the glade file.
[psensor.git]
/
src
/
ui.h
diff --git
a/src/ui.h
b/src/ui.h
index
f9e40d1
..
7ef0ce4
100644
(file)
--- a/
src/ui.h
+++ b/
src/ui.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
2
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>
@@
-34,6
+36,8
@@
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;
@@
-45,6
+49,8
@@
struct ui_psensor {
GtkWidget *menu_bar;
GtkWidget *menu_bar;
+ GtkWidget *popup_menu;
+
/*
* The main vertical box, top contains the menubar, bottom
* contains the sensor_box.
/*
* The main vertical box, top contains the menubar, bottom
* contains the sensor_box.
@@
-57,9
+63,10
@@
struct ui_psensor {
*/
GtkWidget *sensor_box;
*/
GtkWidget *sensor_box;
- int graph_update_interval;
+ GtkListStore *sensors_store;
+ GtkTreeView *sensors_tree;
-
GMutex *sensors_mutex
;
+
int graph_update_interval
;
};
/*
};
/*
@@
-87,4
+94,8
@@
void ui_show_about_dialog();
void ui_enable_alpha_channel(struct ui_psensor *ui);
void ui_enable_alpha_channel(struct ui_psensor *ui);
+void ui_cb_preferences(GtkMenuItem *mi, gpointer data);
+void ui_cb_about(GtkMenuItem *mi, gpointer data);
+void ui_cb_menu_quit(GtkMenuItem *mi, gpointer data);
+void ui_cb_sensor_preferences(GtkMenuItem *mi, gpointer data);
#endif
#endif