X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.c;h=719f50210cf7847946f7cc28a9a3d087db1df45d;hb=7264bd6090d2daa896959ed7ca86ea63365b9a90;hp=e829ed43e7d6f2e2fd52d8c3fd938c97642ea679;hpb=5f275b753e5b28de21690bd9bacb53262e59c58a;p=psensor.git diff --git a/src/ui_notify.c b/src/ui_notify.c index e829ed4..719f502 100644 --- a/src/ui_notify.c +++ b/src/ui_notify.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 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 @@ -53,13 +53,13 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) || t.tv_sec - last_notification_tv.tv_sec >= 60) last_notification_tv = t; else - return ; + return; if (notify_is_initted() == FALSE) notify_init("psensor"); if (notify_is_initted() == TRUE) { - if (ui->config->temperature_unit == CELSIUS) + if (config_get_temperature_unit() == CELSIUS) use_celsius = 1; else use_celsius = 0;