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