Changeset 2434
- Timestamp:
- 01/19/06 01:35:17
- Files:
-
- trunk/libnotify/ChangeLog (modified) (1 diff)
- trunk/libnotify/tools/notify-send.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libnotify/ChangeLog
r2433 r2434 1 Thu Jan 19 01:34:57 PST 2006 Christian Hammond <chipx86@chipx86.com> 2 3 * tools/notify-send.c: 4 - Make notify-send work again when a body isn't specified. 5 1 6 Wed Jan 18 22:24:10 PST 2006 Christian Hammond <chipx86@chipx86.com> 2 7 trunk/libnotify/tools/notify-send.c
r2408 r2434 33 33 { 34 34 const gchar *summary = NULL; 35 const gchar *body = NULL;35 const gchar *body = ""; 36 36 const gchar *type = NULL; 37 37 char *urgency_str = NULL; … … 43 43 poptContext opt_ctx; 44 44 const char **args; 45 NotifyNotification *notify;45 NotifyNotification *notify; 46 46 47 47 struct poptOption options[] = … … 65 65 }; 66 66 67 g_type_init ();67 g_type_init (); 68 68 69 69 opt_ctx = poptGetContext("notify-send", argc, argv, options, 0); … … 129 129 exit(1); 130 130 131 notify = notify_notification_new(summary, body, icon_str, NULL); 132 notify_notification_set_category(notify, type); 133 notify_notification_set_urgency(notify, urgency); 134 notify_notification_set_timeout(notify, expire_timeout); 131 135 132 notify = notify_notification_new (summary, body, icon_str, NULL); 133 notify_notification_set_category (notify, type); 134 notify_notification_set_urgency (notify, urgency); 135 notify_notification_set_timeout (notify, expire_timeout); 136 137 notify_notification_show_and_forget (notify, NULL); 136 notify_notification_show_and_forget(notify, NULL); 138 137 139 138 poptFreeContext(opt_ctx);
