diff --git a/ChangeLog b/ChangeLog index 7b7b64b..6b9d997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jul 04 13:34:14 PDT 2004 Christian Hammond + + * 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 A tools/: diff --git a/SPECIFICATION b/SPECIFICATION index a6728b5..5af5b77 100644 --- a/SPECIFICATION +++ b/SPECIFICATION @@ -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. diff --git a/libnotify/notify.c b/libnotify/notify.c index 847f97e..3846da1 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -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);