Fix some errors in the spec file. Some pieces were not updated when the specification was changed, and some pieces were invalid XML.

This commit is contained in:
Christian Hammond 2006-01-23 07:47:03 +00:00
parent 85d5df3cbd
commit df803f9d01
3 changed files with 23 additions and 29 deletions

View File

@ -1,3 +1,9 @@
Sun Jan 22 23:46:27 PST 2006 Christian Hammond <chipx86@chipx86.com>
* docs/notification-spec.xml:
- Fix some errors in the spec file. Some pieces were not updated when
the specification was changed, and some pieces were invalid XML.
Sun Jan 22 13:21:52 PST 2006 Christian Hammond <chipx86@chipx86.com> Sun Jan 22 13:21:52 PST 2006 Christian Hammond <chipx86@chipx86.com>
* libnotify/notification.c: * libnotify/notification.c:

View File

@ -227,12 +227,18 @@
<xref linkend="protocol"/>). An implementation is free to ignore any <xref linkend="protocol"/>). An implementation is free to ignore any
requested by the client. As an example one possible rendering of requested by the client. As an example one possible rendering of
actions would be as buttons in the notification popup. actions would be as buttons in the notification popup.
</entry>
<entry>
Actions are sent over as a list of pairs. Each even element in the Actions are sent over as a list of pairs. Each even element in the
list (starting at index 0) represents the identifier for the action. list (starting at index 0) represents the identifier for the action.
Each odd element in the list is the localized string that will be Each odd element in the list is the localized string that will be
displayed to the user. displayed to the user.
</entry> </entry>
<entry>
The default action (usually invoked my clicking the notification)
should have a key named <literal>"default"</literal>. The name can
be anything, though implementations are free not to display it.
<entry>
</row> </row>
<row> <row>
<entry>Hints</entry> <entry>Hints</entry>
@ -948,9 +954,10 @@
<entry><parameter>actions</parameter></entry> <entry><parameter>actions</parameter></entry>
<entry>ARRAY</entry> <entry>ARRAY</entry>
<entry> <entry>
Actions are sent over as a list of pairs. Each even element in the list Actions are sent over as a list of pairs. Each even element in
(starting at index 0) represents the identifier for the action. Each odd the list (starting at index 0) represents the identifier for the
element in the list is the localized string that will be displayed to the user. action. Each odd element in the list is the localized string
that will be displayed to the user.
</entry> </entry>
</row> </row>
<row> <row>
@ -1141,8 +1148,7 @@
<function>org.freedesktop.Notifications.ActionInvoked</function> <function>org.freedesktop.Notifications.ActionInvoked</function>
</funcdef> </funcdef>
<paramdef>UINT32 <parameter>id</parameter></paramdef> <paramdef>UINT32 <parameter>id</parameter></paramdef>
<!-- <paramdef>BOOL <parameter>default_action</parameter></paramdef> --> <paramdef>STRING <parameter>action_key</parameter></paramdef>
<paramdef>UINT32 <parameter>action_id</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@ -1180,30 +1186,12 @@
The ID of the notification emitting the ActionInvoked signal. The ID of the notification emitting the ActionInvoked signal.
</entry> </entry>
</row> </row>
<!--
<row> <row>
<entry><parameter>default_action</parameter></entry> <entry><parameter>action_key</parameter></entry>
<entry>BOOL</entry> <entry>STRING</entry>
<entry> <entry>
<constant>TRUE</constant> if the default action was invoked. The key of the action invoked. These match the keys sent over
The default action is often a click on the notification. If this in the list of actions.
is <constant>TRUE</constant>, the <parameter>action_id</parameter>
parameter is ignored.
</entry>
</row>
-->
<row>
<entry><parameter>action_id</parameter></entry>
<entry>UINT32</entry>
<entry>
The ID of the action invoked. A value of 0 means that the default
action was invoked, i.e., clicking the notification itself.
IDs greater than zero are the action IDs as defined by the
calling application.
<!--
This is ignored if
<parameter>default_action</parameter> is <constant>TRUE</constant>.
-->
</entry> </entry>
</row> </row>
</tbody> </tbody>

View File

@ -88,7 +88,7 @@ static GObjectClass *parent_class = NULL;
G_DEFINE_TYPE(NotifyNotification, notify_notification, G_TYPE_OBJECT); G_DEFINE_TYPE(NotifyNotification, notify_notification, G_TYPE_OBJECT);
static void static void
notify_notification_class_init(NotifyNotificationClass * klass) notify_notification_class_init(NotifyNotificationClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS(klass); GObjectClass *object_class = G_OBJECT_CLASS(klass);