Added the urgency level to the spec, and made it a byte.
This commit is contained in:
parent
4661df2654
commit
b775f9946e
|
@ -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>
|
Sun Jul 04 13:28:51 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
|
||||||
|
|
||||||
A tools/:
|
A tools/:
|
||||||
|
|
|
@ -208,6 +208,12 @@ The following messages must be supported by all implementations.
|
||||||
This message requires the following parameters in the exact order
|
This message requires the following parameters in the exact order
|
||||||
shown. For some parameters multiple types may be acceptable
|
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 summary
|
||||||
|
|
||||||
STRING/NIL body: if nil the body is considered omitted.
|
STRING/NIL body: if nil the body is considered omitted.
|
||||||
|
|
|
@ -613,7 +613,7 @@ notify_send_notification_varg(NotifyUrgency urgency, const char *summary,
|
||||||
g_return_val_if_fail(message != NULL, 0);
|
g_return_val_if_fail(message != NULL, 0);
|
||||||
|
|
||||||
_notify_dbus_message_iter_append_app_info(&iter);
|
_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);
|
dbus_message_iter_append_string(&iter, summary);
|
||||||
_notify_dbus_message_iter_append_string_or_nil(&iter, detailed);
|
_notify_dbus_message_iter_append_string_or_nil(&iter, detailed);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue