Added the urgency level to the spec, and made it a byte.

This commit is contained in:
Christian Hammond 2004-07-04 20:34:32 +00:00
parent 4661df2654
commit b775f9946e
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sun Jul 04 13:34:14 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* libnotify/notify.c:
* SPECIFICATION:
- Added the urgency level to the spec, and made it a byte.
Sun Jul 04 13:28:51 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
A tools/:

View File

@ -208,6 +208,12 @@ The following messages must be supported by all implementations.
This message requires the following parameters in the exact order
shown. For some parameters multiple types may be acceptable
BYTE urgency: The urgency level:
0 - low urgency
1 - medium (default)
2 - high
3 - critical
STRING summary
STRING/NIL body: if nil the body is considered omitted.

View File

@ -613,7 +613,7 @@ notify_send_notification_varg(NotifyUrgency urgency, const char *summary,
g_return_val_if_fail(message != NULL, 0);
_notify_dbus_message_iter_append_app_info(&iter);
dbus_message_iter_append_uint32(&iter, urgency);
dbus_message_iter_append_byte(&iter, urgency);
dbus_message_iter_append_string(&iter, summary);
_notify_dbus_message_iter_append_string_or_nil(&iter, detailed);