X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui.h;h=42f2af7c1386f0762577c1cb1c8d6418b1e34d75;hb=d280db5907574f0d29458dd5d301ce030a13189b;hp=af17b78c32156481a6a80dfe783d192220b1ae61;hpb=f3b05dae619a7909bd7422b3a82422c9442aa114;p=psensor.git diff --git a/src/ui.h b/src/ui.h index af17b78..42f2af7 100644 --- a/src/ui.h +++ b/src/ui.h @@ -26,7 +26,7 @@ #include #include -#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029) +#if defined(HAVE_APPINDICATOR) #include #endif @@ -39,31 +39,14 @@ struct ui_psensor { /* mutex which MUST be used for accessing sensors.*/ pthread_mutex_t sensors_mutex; - GtkWidget *w_graph; - 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. - */ - GtkWidget *main_box; - - /* - * The box which contains the sensors graph and the sensors - * information list. - */ - GtkPaned *sensor_box; - GtkListStore *sensors_store; GtkTreeView *sensors_tree; - GtkScrolledWindow *sensors_scrolled_tree; int graph_update_interval; }; @@ -89,7 +72,7 @@ void ui_window_create(struct ui_psensor *ui); void ui_menu_bar_show(unsigned int show, struct ui_psensor *ui); -void ui_show_about_dialog(); +void ui_show_about_dialog(void); void ui_enable_alpha_channel(struct ui_psensor *ui); @@ -98,5 +81,7 @@ 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); -struct psensor **ui_get_sensors_ordered_by_position(const struct ui_psensor *); +GtkWidget *ui_get_graph(void); + +struct psensor **ui_get_sensors_ordered_by_position(struct psensor **); #endif