[Xfce4-commits] <xfce4-notifyd:xfce4-notifyd-0.1> Add spec version to GetServerInformation.
Jérôme Guelfucci
noreply at xfce.org
Tue Nov 30 22:34:05 CET 2010
Updating branch refs/heads/xfce4-notifyd-0.1
to 810b0bde565f8c3722b99e3890a1e59f5f0d4c39 (commit)
from 6f5b49cdeddad7ea45fc76f433d91b454b0ff00c (commit)
commit 810b0bde565f8c3722b99e3890a1e59f5f0d4c39
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Tue Nov 30 18:50:04 2010 +0100
Add spec version to GetServerInformation.
xfce4-notifyd/notify-dbus.xml | 1 +
xfce4-notifyd/xfce-notify-daemon.c | 3 +++
xfce4-notifyd/xfce-notify-daemon.h | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/xfce4-notifyd/notify-dbus.xml b/xfce4-notifyd/notify-dbus.xml
index 832d7b9..98a82ef 100644
--- a/xfce4-notifyd/notify-dbus.xml
+++ b/xfce4-notifyd/notify-dbus.xml
@@ -27,6 +27,7 @@
<arg direction="out" name="name" type="s"/>
<arg direction="out" name="vendor" type="s"/>
<arg direction="out" name="version" type="s"/>
+ <arg direction="out" name="spec_version" type="s"/>
</method>
<signal name="NotificationClosed">
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 6567672..aa123f6 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -98,6 +98,7 @@ static gboolean notify_get_server_information(XfceNotifyDaemon *daemon,
gchar **OUT_name,
gchar **OUT_vendor,
gchar **OUT_version,
+ gchar **OUT_spec_version,
GError **error);
static gboolean notify_quit(XfceNotifyDaemon *daemon,
@@ -415,11 +416,13 @@ notify_get_server_information(XfceNotifyDaemon *daemon,
gchar **OUT_name,
gchar **OUT_vendor,
gchar **OUT_version,
+ gchar **OUT_spec_version,
GError **error)
{
*OUT_name = g_strdup("Xfce Notify Daemon");
*OUT_vendor = g_strdup("Xfce");
*OUT_version = g_strdup(VERSION);
+ *OUT_spec_version = g_strdup(NOTIFICATIONS_SPEC_VERSION);
return TRUE;
}
diff --git a/xfce4-notifyd/xfce-notify-daemon.h b/xfce4-notifyd/xfce-notify-daemon.h
index 9b9efe6..b56a4a1 100644
--- a/xfce4-notifyd/xfce-notify-daemon.h
+++ b/xfce4-notifyd/xfce-notify-daemon.h
@@ -25,6 +25,7 @@
#define XFCE_TYPE_NOTIFY_DAEMON (xfce_notify_daemon_get_type())
#define XFCE_NOTIFY_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), XFCE_TYPE_NOTIFY_DAEMON, XfceNotifyDaemon))
#define XFCE_IS_NOTIFY_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), XFCE_TYPE_NOTIFY_DAEMON))
+#define NOTIFICATIONS_SPEC_VERSION "1.0"
G_BEGIN_DECLS
More information about the Xfce4-commits
mailing list