Make notify-send work again when a body isn't specified.
This commit is contained in:
parent
28e0463e75
commit
3b0e8d2986
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jan 19 01:34:57 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||||
|
|
||||||
|
* tools/notify-send.c:
|
||||||
|
- Make notify-send work again when a body isn't specified.
|
||||||
|
|
||||||
Wed Jan 18 22:24:10 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
Wed Jan 18 22:24:10 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||||
|
|
||||||
* libnotify/notifynotification.h:
|
* libnotify/notifynotification.h:
|
||||||
|
|
|
@ -32,7 +32,7 @@ int
|
||||||
main(int argc, const char **argv)
|
main(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
const gchar *summary = NULL;
|
const gchar *summary = NULL;
|
||||||
const gchar *body = NULL;
|
const gchar *body = "";
|
||||||
const gchar *type = NULL;
|
const gchar *type = NULL;
|
||||||
char *urgency_str = NULL;
|
char *urgency_str = NULL;
|
||||||
gchar *icon_str = NULL;
|
gchar *icon_str = NULL;
|
||||||
|
@ -128,7 +128,6 @@ main(int argc, const char **argv)
|
||||||
if (!notify_init("notify-send"))
|
if (!notify_init("notify-send"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
|
|
||||||
notify = notify_notification_new(summary, body, icon_str, NULL);
|
notify = notify_notification_new(summary, body, icon_str, NULL);
|
||||||
notify_notification_set_category(notify, type);
|
notify_notification_set_category(notify, type);
|
||||||
notify_notification_set_urgency(notify, urgency);
|
notify_notification_set_urgency(notify, urgency);
|
||||||
|
|
Loading…
Reference in New Issue