X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui.h;fp=src%2Fui.h;h=0000000000000000000000000000000000000000;hp=426f29cd9fefc36d589b2c6762792636a8eae30e;hb=121f640200ae18b067582f57a48d6133c8b1e1ff;hpb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9 diff --git a/src/ui.h b/src/ui.h deleted file mode 100644 index 426f29c..0000000 --- a/src/ui.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (C) 2010-2016 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 - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301 USA - */ -#ifndef _PSENSOR_UI_H_ -#define _PSENSOR_UI_H_ - -#include "config.h" - -#include - -#include -#include - -#if defined(HAVE_APPINDICATOR) -#include -#endif - -#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; - - struct config *config; - - GtkWidget *main_window; - - GtkWidget *popup_menu; - - GtkListStore *sensors_store; - GtkTreeView *sensors_tree; - - int graph_update_interval; -}; - -/* 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); - -/* Creates the main GTK window */ -void ui_window_create(struct ui_psensor *ui); - -void ui_menu_bar_show(unsigned int show, struct ui_psensor *ui); - -void ui_enable_alpha_channel(struct ui_psensor *ui); - -void ui_cb_preferences(GtkMenuItem *mi, gpointer data); -void ui_cb_menu_quit(GtkMenuItem *mi, gpointer data); -void ui_cb_sensor_preferences(GtkMenuItem *mi, gpointer data); - -GtkWidget *ui_get_graph(void); - -struct psensor **ui_get_sensors_ordered_by_position(struct psensor **); -#endif