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
6 # libnotify, used unit-tests
8 -PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.4.5])
9 +PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.7.0])
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
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,
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
31 notification = notify_notification_new (
32 "Eject", /* for a11y-reasons put something meaningfull here */
34 - "notification-device-eject",
36 + "notification-device-eject");
37 notify_notification_set_hint_string (notification,
38 "x-canonical-private-icon-only",
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
45 "Hey pal, what's up with the party "
46 "next weekend? Will you join me "
48 - "notification-message-im",
50 + "notification-message-im");
52 success = notify_notification_show (notification, &error);
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
59 notification = notify_notification_new (
60 "WiFi connection lost",
62 - "notification-network-wireless-disconnected",
64 + "notification-network-wireless-disconnected");
66 success = notify_notification_show (notification, &error);
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
73 notification = notify_notification_new (
75 "Set icon via hint \"image_path\" to logo-icon.",
78 notify_notification_set_hint_string (
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
85 notification = notify_notification_new (
86 "Brightness", /* for a11y-reasons put something meaningfull here */
91 notify_notification_set_hint_int32 (notification,
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
99 notification = notify_notification_new (
101 "This is a superfluous notification",
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
111 notification = notify_notification_new (
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
123 notification = notify_notification_new (
124 "Eject", /* for a11y-reasons put something meaningfull here */
126 - "notification-device-eject",
128 + "notification-device-eject");
129 notify_notification_set_hint_string (notification,
130 "x-canonical-private-icon-only",
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
137 "Inital notification",
138 "This is the original content of "
139 "this notification-bubble.",
140 - "notification-message-im",
142 + "notification-message-im");
144 success = notify_notification_show (notification, &error);
148 "This bubble uses the icon-title-body "
150 - "notification-message-im",
152 + "notification-message-im");
154 success = notify_notification_show (notification, &error);
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
161 NotifyNotification *n;
162 n = notify_notification_new ("Test notification",
166 notify_notification_show (n, NULL);
167 g_object_unref(G_OBJECT(n));
171 n = notify_notification_new (" ",
177 notify_notification_update (n,
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
185 n = notify_notification_new ("Test",
186 "You should see a normal notification",
189 notify_notification_show (n, NULL);
194 n = notify_notification_new ("Test",
198 res = notify_notification_show (n, NULL);
203 n = notify_notification_new ("Image Test",
204 "You should see an image",
207 g_print ("iconpath: %s\n", SRCDIR"/icons/avatar.png");
208 pixbuf = gdk_pixbuf_new_from_file_at_scale (SRCDIR"/icons/avatar.png",
210 @@ -157,22 +157,22 @@
212 n1 = notify_notification_new ("Dummy Notification",
213 "This is a test notification",
216 notify_notification_show (n1, NULL);
217 n2 = notify_notification_new ("Normal Notification",
218 "You should see this *after* the urgent notification.",
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.",
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.",
234 notify_notification_set_urgency (n4, NOTIFY_URGENCY_CRITICAL);
235 notify_notification_show (n4, NULL);
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.",
243 notify_notification_add_action (n1,
248 n = notify_notification_new ("Test Title",
249 "This notification will be closed prematurely...",
252 notify_notification_show (n, NULL);
254 loop = g_main_loop_new(NULL, FALSE);
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",
261 + SRCDIR"/icons/avatar.png");
262 res = notify_notification_show (n, NULL);
266 /* init notification, supply first line of body-text */
267 n = notify_notification_new (" ", /* needs this to be non-NULL */
269 - "notification-audio-play",
271 + "notification-audio-play");
272 notify_notification_set_hint_string (n, "icon-only", "allowed");
273 res = notify_notification_show (n, NULL);
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 > b < c = 0",
279 - SRCDIR"/icons/avatar.png",
281 + SRCDIR"/icons/avatar.png");
282 res = notify_notification_show (n, NULL);
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);