X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_appindicator.h;fp=src%2Fui_appindicator.h;h=0000000000000000000000000000000000000000;hp=c808aa6d65aa86fc7ceda49cd61e252bfee05bab;hb=46d058bd1e0f43ea797d19c7e71464e5cf65e902;hpb=02611eef7107eba73945e0ad47edb129c6261cc2 diff --git a/src/ui_appindicator.h b/src/ui_appindicator.h deleted file mode 100644 index c808aa6..0000000 --- a/src/ui_appindicator.h +++ /dev/null @@ -1,49 +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_APPINDICATOR_H_ -#define _PSENSOR_UI_APPINDICATOR_H_ - -#include - -#include -#include - -#if defined(HAVE_APPINDICATOR) && HAVE_APPINDICATOR - -bool is_appindicator_supported(void); - -void ui_appindicator_init(struct ui_psensor *ui); -void ui_appindicator_update(struct ui_psensor *ui, bool alert); -void ui_appindicator_update_menu(struct ui_psensor *ui); -void ui_appindicator_cleanup(void); -void ui_appindicator_menu_show_cb(GtkMenuItem *, gpointer); - -#else - -static inline bool is_appindicator_supported(void) { return false; } - -static inline void ui_appindicator_init(struct ui_psensor *ui) {} -static inline void ui_appindicator_update(struct ui_psensor *ui, bool alert) {} -static inline void ui_appindicator_update_menu(struct ui_psensor *ui) {} -static inline void ui_appindicator_cleanup(void) {} -static inline void ui_appindicator_menu_show_cb(GtkMenuItem *m, gpointer d) {} - -#endif - -#endif