* 02110-1301 USA
*/
-#include <gtk/gtk.h>
-
#include "log.h"
#include "ui_status.h"
void ui_status_init(struct ui_psensor *ui)
{
+ if (status)
+ return ;
+
log_printf(LOG_DEBUG, "ui_status_create()");
status = gtk_status_icon_new();
- gtk_status_icon_set_from_icon_name(status, "psensor");
+ gtk_status_icon_set_from_icon_name(status, "psensor_normal");
gtk_status_icon_set_visible(status, TRUE);
g_signal_connect(G_OBJECT(status),
log_printf(LOG_DEBUG, "ui_status_update()");
if (status_attention && !attention)
- gtk_status_icon_set_from_icon_name(status, "psensor");
+ gtk_status_icon_set_from_icon_name(status, "psensor_normal");
else if (!status_attention && attention)
gtk_status_icon_set_from_icon_name(status, "psensor_hot");
status_attention = attention;
}
+
+GtkStatusIcon *ui_status_get_icon()
+{
+ return status;
+}