updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / notify-osd-bzr / notify-osd-0.9.30-libnotify-0.7.patch
blobf9142ce311967234c6756a90ebf2bee981c2fae2
1 === modified file 'configure.in'
2 --- notify-osd-build/configure.in 2011-02-25 11:02:45 +0000
3 +++ notify-osd-build/configure.in 2011-02-25 15:57:12 +0000
4 @@ -42,7 +42,7 @@
6 # libnotify, used unit-tests
8 -PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.4.5])
9 +PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.7.0])
12 # dbus
14 === modified file 'examples/append-hint-example.c'
15 --- notify-osd-build/examples/append-hint-example.c 2009-08-26 11:17:55 +0000
16 +++ notify-osd-build/examples/append-hint-example.c 2011-02-25 15:57:12 +0000
17 @@ -41,7 +41,7 @@
18 GError* error = NULL;
20 /* initial notification */
21 - notification = notify_notification_new (title, body, icon, NULL);
22 + notification = notify_notification_new (title, body, icon);
23 notify_notification_set_hint_string (notification,
24 "x-canonical-append",
25 "");
27 === modified file 'examples/icon-only.c'
28 --- notify-osd-build/examples/icon-only.c 2009-08-26 11:17:55 +0000
29 +++ notify-osd-build/examples/icon-only.c 2011-02-25 15:57:12 +0000
30 @@ -54,8 +54,7 @@
31 notification = notify_notification_new (
32 "Eject", /* for a11y-reasons put something meaningfull here */
33 NULL,
34 - "notification-device-eject",
35 - NULL);
36 + "notification-device-eject");
37 notify_notification_set_hint_string (notification,
38 "x-canonical-private-icon-only",
39 "");
41 === modified file 'examples/icon-summary-body.c'
42 --- notify-osd-build/examples/icon-summary-body.c 2009-08-26 11:17:55 +0000
43 +++ notify-osd-build/examples/icon-summary-body.c 2011-02-25 15:57:12 +0000
44 @@ -54,8 +54,7 @@
45 "Hey pal, what's up with the party "
46 "next weekend? Will you join me "
47 "and Anna?",
48 - "notification-message-im",
49 - NULL);
50 + "notification-message-im");
51 error = NULL;
52 success = notify_notification_show (notification, &error);
53 if (!success)
55 === modified file 'examples/icon-summary.c'
56 --- notify-osd-build/examples/icon-summary.c 2009-08-26 11:17:55 +0000
57 +++ notify-osd-build/examples/icon-summary.c 2011-02-25 15:57:12 +0000
58 @@ -52,8 +52,7 @@
59 notification = notify_notification_new (
60 "WiFi connection lost",
61 NULL,
62 - "notification-network-wireless-disconnected",
63 - NULL);
64 + "notification-network-wireless-disconnected");
65 error = NULL;
66 success = notify_notification_show (notification, &error);
67 if (!success)
69 === modified file 'examples/icon-updating.c'
70 --- notify-osd-build/examples/icon-updating.c 2010-04-07 17:48:18 +0000
71 +++ notify-osd-build/examples/icon-updating.c 2011-02-25 15:57:12 +0000
72 @@ -53,7 +53,6 @@
73 notification = notify_notification_new (
74 "Test 1/3",
75 "Set icon via hint \"image_path\" to logo-icon.",
76 - NULL,
77 NULL);
78 notify_notification_set_hint_string (
79 notification,
81 === modified file 'examples/icon-value.c'
82 --- notify-osd-build/examples/icon-value.c 2009-08-26 11:17:55 +0000
83 +++ notify-osd-build/examples/icon-value.c 2011-02-25 15:57:12 +0000
84 @@ -42,8 +42,7 @@
85 notification = notify_notification_new (
86 "Brightness", /* for a11y-reasons put something meaningfull here */
87 NULL,
88 - icon,
89 - NULL);
90 + icon);
91 notify_notification_set_hint_int32 (notification,
92 "value",
93 value);
95 === modified file 'examples/summary-body.c'
96 --- notify-osd-build/examples/summary-body.c 2009-08-26 11:17:55 +0000
97 +++ notify-osd-build/examples/summary-body.c 2011-02-25 15:57:12 +0000
98 @@ -52,7 +52,6 @@
99 notification = notify_notification_new (
100 "Totem",
101 "This is a superfluous notification",
102 - NULL,
103 NULL);
104 error = NULL;
105 success = notify_notification_show (notification, &error);
107 === modified file 'examples/summary-only.c'
108 --- notify-osd-build/examples/summary-only.c 2009-08-26 11:17:55 +0000
109 +++ notify-osd-build/examples/summary-only.c 2011-02-25 15:57:12 +0000
110 @@ -52,7 +52,6 @@
111 notification = notify_notification_new (
112 "Summary-only",
113 NULL,
114 - NULL,
115 NULL);
116 error = NULL;
117 success = notify_notification_show (notification, &error);
119 === modified file 'examples/sync-icon-only.c'
120 --- notify-osd-build/examples/sync-icon-only.c 2009-08-26 11:17:55 +0000
121 +++ notify-osd-build/examples/sync-icon-only.c 2011-02-25 15:57:12 +0000
122 @@ -55,8 +55,7 @@
123 notification = notify_notification_new (
124 "Eject", /* for a11y-reasons put something meaningfull here */
125 NULL,
126 - "notification-device-eject",
127 - NULL);
128 + "notification-device-eject");
129 notify_notification_set_hint_string (notification,
130 "x-canonical-private-icon-only",
131 "");
133 === modified file 'examples/update-notifications.c'
134 --- notify-osd-build/examples/update-notifications.c 2009-08-26 11:17:55 +0000
135 +++ notify-osd-build/examples/update-notifications.c 2011-02-25 15:57:12 +0000
136 @@ -53,8 +53,7 @@
137 "Inital notification",
138 "This is the original content of "
139 "this notification-bubble.",
140 - "notification-message-im",
141 - NULL);
142 + "notification-message-im");
143 error = NULL;
144 success = notify_notification_show (notification, &error);
145 if (!success)
146 @@ -97,8 +96,7 @@
147 "Initial layout",
148 "This bubble uses the icon-title-body "
149 "layout.",
150 - "notification-message-im",
151 - NULL);
152 + "notification-message-im");
153 error = NULL;
154 success = notify_notification_show (notification, &error);
155 if (!success)
157 === modified file 'tests/test-synchronous.c'
158 --- notify-osd-build/tests/test-synchronous.c 2009-03-12 16:44:00 +0000
159 +++ notify-osd-build/tests/test-synchronous.c 2011-02-25 15:57:12 +0000
160 @@ -38,7 +38,7 @@
161 NotifyNotification *n;
162 n = notify_notification_new ("Test notification",
163 g_strdup (message),
164 - "", NULL);
165 + "");
166 notify_notification_show (n, NULL);
167 g_object_unref(G_OBJECT(n));
169 @@ -53,8 +53,7 @@
170 if (n == NULL)
171 n = notify_notification_new (" ",
173 - g_strdup (icon),
174 - NULL);
175 + g_strdup (icon));
176 else
177 notify_notification_update (n,
178 " ",
180 === modified file 'tests/test-withlib.c'
181 --- notify-osd-build/tests/test-withlib.c 2009-09-09 07:46:16 +0000
182 +++ notify-osd-build/tests/test-withlib.c 2011-02-25 15:57:12 +0000
183 @@ -94,7 +94,7 @@
185 n = notify_notification_new ("Test",
186 "You should see a normal notification",
187 - "", NULL);
188 + "");
189 notify_notification_show (n, NULL);
190 sleep (3);
192 @@ -109,7 +109,7 @@
194 n = notify_notification_new ("Test",
195 "New notification",
196 - "", NULL);
197 + "");
198 res = notify_notification_show (n, NULL);
199 g_assert (res);
200 sleep (1);
201 @@ -135,7 +135,7 @@
203 n = notify_notification_new ("Image Test",
204 "You should see an image",
205 - "", NULL);
206 + "");
207 g_print ("iconpath: %s\n", SRCDIR"/icons/avatar.png");
208 pixbuf = gdk_pixbuf_new_from_file_at_scale (SRCDIR"/icons/avatar.png",
209 64, 64, TRUE, NULL);
210 @@ -157,22 +157,22 @@
212 n1 = notify_notification_new ("Dummy Notification",
213 "This is a test notification",
214 - "", NULL);
215 + "");
216 notify_notification_show (n1, NULL);
217 n2 = notify_notification_new ("Normal Notification",
218 "You should see this *after* the urgent notification.",
219 - "", NULL);
220 + "");
221 notify_notification_set_urgency (n2, NOTIFY_URGENCY_LOW);
222 notify_notification_show (n2, NULL);
223 n3 = notify_notification_new ("Synchronous Notification",
224 "You should immediately see this notification.",
225 - "", NULL);
226 + "");
227 notify_notification_set_hint_string (n3, "synchronous", "test");
228 notify_notification_set_urgency (n3, NOTIFY_URGENCY_NORMAL);
229 notify_notification_show (n3, NULL);
230 n4 = notify_notification_new ("Urgent Notification",
231 "You should see a dialog box, and after, a normal notification.",
232 - "", NULL);
233 + "");
234 notify_notification_set_urgency (n4, NOTIFY_URGENCY_CRITICAL);
235 notify_notification_show (n4, NULL);
237 @@ -207,7 +207,7 @@
239 n1 = notify_notification_new ("Notification with an action",
240 "You should see that in a dialog box. Click the 'Action' button for the test to succeed.",
241 - "", NULL);
242 + "");
243 notify_notification_add_action (n1,
244 "action",
245 "Action",
246 @@ -231,7 +231,7 @@
248 n = notify_notification_new ("Test Title",
249 "This notification will be closed prematurely...",
250 - "", NULL);
251 + "");
252 notify_notification_show (n, NULL);
254 loop = g_main_loop_new(NULL, FALSE);
255 @@ -256,8 +256,7 @@
256 /* init notification, supply first line of body-text */
257 n = notify_notification_new ("Test (append-hint)",
258 "The quick brown fox jumps over the lazy dog.",
259 - SRCDIR"/icons/avatar.png",
260 - NULL);
261 + SRCDIR"/icons/avatar.png");
262 res = notify_notification_show (n, NULL);
263 g_assert (res);
264 sleep (1);
265 @@ -296,8 +295,7 @@
266 /* init notification, supply first line of body-text */
267 n = notify_notification_new (" ", /* needs this to be non-NULL */
268 NULL,
269 - "notification-audio-play",
270 - NULL);
271 + "notification-audio-play");
272 notify_notification_set_hint_string (n, "icon-only", "allowed");
273 res = notify_notification_show (n, NULL);
274 g_assert (res);
275 @@ -314,8 +312,7 @@
277 n = notify_notification_new ("Swallow markup test",
278 "This text is hopefully neither <b>bold</b>, <i>italic</i> nor <u>underlined</u>.\n\nA little math-notation:\n\n\ta &gt; b &lt; c = 0",
279 - SRCDIR"/icons/avatar.png",
280 - NULL);
281 + SRCDIR"/icons/avatar.png");
282 res = notify_notification_show (n, NULL);
283 g_assert (res);
284 sleep (2);
285 @@ -341,7 +338,7 @@
287 // create dummy notification
288 snprintf (buf, 19, "Test #%.2d", i);
289 - n = notify_notification_new (buf, buf, "", NULL);
290 + n = notify_notification_new (buf, buf, "");
292 // inject it into the queue
293 res = notify_notification_show (n, &error);