X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.c;fp=src%2Fui_notify.c;h=0f48226e0429bc177dbba933818bb1abf704d9c5;hb=2b9e1441889f40b55cbb026bb50fa16a95e501a4;hp=d547845f34b0b1d3297beebdc2b86d8705c8d0a2;hpb=cb3ae2042f414d566e93c90c38205a4e3ecff3f2;p=psensor.git diff --git a/src/ui_notify.c b/src/ui_notify.c index d547845..0f48226 100644 --- a/src/ui_notify.c +++ b/src/ui_notify.c @@ -36,7 +36,7 @@ static struct timeval last_notification_tv; void ui_notify(struct psensor *sensor, struct ui_psensor *ui) { struct timeval t; - char *name; + char *body; NotifyNotification *notif; log_debug("last_notification %d", last_notification_tv.tv_sec); @@ -56,7 +56,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) notify_init("psensor"); if (notify_is_initted() == TRUE) { - name = strdup(sensor->name); + body = strdup(sensor->name); /* * Since libnotify 0.7 notify_notification_new has @@ -64,14 +64,14 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) */ #if NOTIFY_CHECK_VERSION(0, 7, 0) notif = notify_notification_new - (_("Temperature alert"), name, PSENSOR_ICON); + (_("Temperature alert"), body, PSENSOR_ICON); #else notif = notify_notification_new(_("Temperature alert"), - name, + body, PSENSOR_ICON, GTK_WIDGET(ui->main_window)); #endif - log_debug("notif_notification_new %s", sensor->name); + log_debug("notif_notification_new %s", body); notify_notification_show(notif, NULL);