X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui.h;h=a799b2367f2b8820d50407d8dac7b5edc5d3e934;hb=d2123ce7e37e7ddcf187373b4d27b8f4e2f85eae;hp=f9e40d1c59507b61d234e4c39f9c55a6df03d18a;hpb=105b82040826bd4215b17250001d110645e51e09;p=psensor.git diff --git a/src/ui.h b/src/ui.h index f9e40d1..a799b23 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 @@ -34,17 +36,19 @@ struct ui_psensor { struct psensor **sensors; + /* mutex which MUST be used for accessing sensors.*/ + pthread_mutex_t sensors_mutex; GtkWidget *w_graph; - struct ui_sensorlist *ui_sensorlist; - struct config *config; GtkWidget *main_window; GtkWidget *menu_bar; + GtkWidget *popup_menu; + /* * The main vertical box, top contains the menubar, bottom * contains the sensor_box. @@ -55,11 +59,13 @@ struct ui_psensor { * The box which contains the sensors graph and the sensors * information list. */ - GtkWidget *sensor_box; + GtkPaned *sensor_box; - int graph_update_interval; + GtkListStore *sensors_store; + GtkTreeView *sensors_tree; + GtkScrolledWindow *sensors_scrolled_tree; - GMutex *sensors_mutex; + int graph_update_interval; }; /* @@ -87,4 +93,8 @@ void ui_show_about_dialog(); 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