f06c16d
f06c16d
Revert e5e86376c5824b74073ab1ab2a332ee9c3bb64fc
f06c16d
We want to send the reason as libnotify 0.4.5 does support the reason arg.
f06c16d
f06c16d
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
f06c16d
new file mode 100644
f06c16d
index 0000000..4afffb8
f06c16d
--- /dev/null
f06c16d
+++ b/po/POTFILES.skip
f06c16d
@@ -0,0 +1 @@
f06c16d
+.pc/01_send-second-arg-notification-closed.patch/xfce4-notifyd/xfce-notify-daemon.c
f06c16d
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
f06c16d
index 9a14e30..cd71cbb 100644
f06c16d
--- a/xfce4-notifyd/xfce-notify-daemon.c
f06c16d
+++ b/xfce4-notifyd/xfce-notify-daemon.c
f06c16d
@@ -125,15 +125,10 @@
f06c16d
                                                     G_SIGNAL_RUN_LAST,
f06c16d
                                                     0,
f06c16d
                                                     NULL, NULL,
f06c16d
-                                                    g_cclosure_marshal_VOID__UINT,
f06c16d
-                                                    G_TYPE_NONE, 1,
f06c16d
-                                                    G_TYPE_UINT);
f06c16d
-#if 0  /* it seems libnotify doesn't support the close-reason arg */
f06c16d
                                                     xfce_notify_marshal_VOID__UINT_UINT,
f06c16d
                                                     G_TYPE_NONE, 2,
f06c16d
                                                     G_TYPE_UINT,
f06c16d
                                                     G_TYPE_UINT);
f06c16d
-#endif
f06c16d
     signals[SIG_ACTION_INVOKED] = g_signal_new("action-invoked",
f06c16d
                                                XFCE_TYPE_NOTIFY_DAEMON,
f06c16d
                                                G_SIGNAL_RUN_LAST,
f06c16d
@@ -215,9 +210,7 @@
f06c16d
 
f06c16d
     g_tree_remove(daemon->active_notifications, id_p);
f06c16d
     g_signal_emit(G_OBJECT(daemon), signals[SIG_NOTIFICATION_CLOSED], 0,
f06c16d
-                  GPOINTER_TO_UINT(id_p));
f06c16d
-    /* NOTE: libnotify doesn't support the close-reason argument to
f06c16d
-     * the signal.  not sure why. */
f06c16d
+                  GPOINTER_TO_UINT(id_p), reason);
f06c16d
 }
f06c16d
 
f06c16d
 static void
f06c16d