summaryrefslogtreecommitdiff
blob: 72e15cfb8e2a2c772985882790fb1c272d8a9654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Snatched from Debian for compability with libnotify 0.4.5.

diff -ur xfce4-notifyd-0.1.0.orig/xfce4-notifyd/xfce-notify-daemon.c xfce4-notifyd-0.1.0/xfce4-notifyd/xfce-notify-daemon.c
--- xfce4-notifyd-0.1.0.orig/xfce4-notifyd/xfce-notify-daemon.c	2008-09-21 10:28:50.000000000 +0300
+++ xfce4-notifyd-0.1.0/xfce4-notifyd/xfce-notify-daemon.c	2009-07-22 10:02:12.000000000 +0300
@@ -125,15 +125,10 @@
                                                     G_SIGNAL_RUN_LAST,
                                                     0,
                                                     NULL, NULL,
-                                                    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 +210,7 @@
 
     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