[Xfce4-commits] <xfce4-notifyd:xfce4-notifyd-0.1> Send the reason argument.
Jérôme Guelfucci
noreply at xfce.org
Tue Nov 30 22:34:04 CET 2010
Updating branch refs/heads/xfce4-notifyd-0.1
to 6f5b49cdeddad7ea45fc76f433d91b454b0ff00c (commit)
from cb2be233d2e883acbe93b1eda3648246e36e3453 (commit)
commit 6f5b49cdeddad7ea45fc76f433d91b454b0ff00c
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Tue Nov 30 18:39:28 2010 +0100
Send the reason argument.
xfce4-notifyd/xfce-notify-daemon.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 9a14e30..6567672 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -128,12 +128,10 @@ xfce_notify_daemon_class_init(XfceNotifyDaemonClass *klass)
g_cclosure_marshal_VOID__UINT,
G_TYPE_NONE, 1,
G_TYPE_UINT);
-#if 0 /* it seems libnotify doesn't support the close-reason arg */
xfce_notify_marshal_VOID__UINT_UINT,
G_TYPE_NONE, 2,
G_TYPE_UINT,
G_TYPE_UINT);
-#endif
signals[SIG_ACTION_INVOKED] = g_signal_new("action-invoked",
XFCE_TYPE_NOTIFY_DAEMON,
G_SIGNAL_RUN_LAST,
@@ -215,9 +213,7 @@ xfce_notify_daemon_window_closed(XfceNotifyWindow *window,
g_tree_remove(daemon->active_notifications, id_p);
g_signal_emit(G_OBJECT(daemon), signals[SIG_NOTIFICATION_CLOSED], 0,
- GPOINTER_TO_UINT(id_p));
- /* NOTE: libnotify doesn't support the close-reason argument to
- * the signal. not sure why. */
+ GPOINTER_TO_UINT(id_p), reason);
}
static void
More information about the Xfce4-commits
mailing list