X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_status.h;h=8a59fd5252cfe948eac0aa8f080ad798bcdb88ce;hb=7264bd6090d2daa896959ed7ca86ea63365b9a90;hp=ec6507598a96f6b14338685e5d73f6dcdb9b2239;hpb=9962504b9013b78943b8a8854da0ec4bb6456750;p=psensor.git diff --git a/src/ui_status.h b/src/ui_status.h index ec65075..8a59fd5 100644 --- a/src/ui_status.h +++ b/src/ui_status.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 jeanfi@gmail.com + * 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 @@ -20,10 +20,16 @@ #ifndef _PSENSOR_UI_STATUS_H_ #define _PSENSOR_UI_STATUS_H_ -void ui_status_init(); -void ui_status_cleanup(); +#include +#include +void ui_status_init(struct ui_psensor *ui); +void ui_status_cleanup(void); +void ui_status_update(struct ui_psensor *ui, unsigned int attention); /* Whether status icon is supported i.e. visible. */ -int is_status_supported(); +int is_status_supported(void); +GtkStatusIcon *ui_status_get_icon(struct ui_psensor *ui); +/* Whether the statuc icon should be visible.*/ +void ui_status_set_visible(unsigned int visible); #endif