[libnotify] Add test-rtl.c
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify] Add test-rtl.c
- Date: Wed, 23 Jun 2010 23:11:05 +0000 (UTC)
commit d521157ec62f4c25efa4f55df948ac63e2cba7c8
Author: William Jon McCann <jmccann redhat com>
Date: Wed Jun 23 19:06:42 2010 -0400
Add test-rtl.c
Missing from 3de71571ea822dd55d0a325553414e34b66d888a
tests/test-rtl.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-rtl.c b/tests/test-rtl.c
new file mode 100644
index 0000000..0e29f38
--- /dev/null
+++ b/tests/test-rtl.c
@@ -0,0 +1,49 @@
+/*
+ * @file tests/test-basic.c Unit test: basics
+ *
+ * @Copyright (C) 2004 Mike Hearn <mike navi cx>
+ *
+ * Test Case by Djihed Afifi <djihed gmail com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <libnotify/notify.h>
+#include <stdio.h>
+#include <unistd.h>
+
+int
+main ()
+{
+ NotifyNotification *n;
+
+ notify_init("Basics");
+
+ n = notify_notification_new ("اختبار",
+ "Ù?Ù?Ù?ر Ù?Ù?Ù?Ù? عربآÙ?ز Ù?Ù?اخا Ù?Ù?Ù?Ù?اش Ù?تبادÙ? اÙ?خبرات Ù?اÙ?Ù?عرÙ?Ø© ØÙ?Ù? اÙ?Ù?غة اÙ?عربÙ?Ø© Ù?Ù?ساÙ?Ù?اتÙ?ا Ù?Ù?اÙ?تعÙ?Ù?Ù? بدعÙ?Ù?ا Ù?اÙ?إرتÙ?اء بÙ?ا Ù?Ù? اÙ?ØÙ?سبة عÙ?Ù?Ù?اÙ? Ù?اÙ?برÙ?جÙ?ات اÙ?Øرة عÙ?Ù? Ù?جÙ? اÙ?خصÙ?ص. Ù?ذا اÙ?Ù?Ù?Ù?Ù? عبارة عÙ? بÙ?ئة تعاÙ?Ù?Ù?Ø© تشارÙ?Ù?Ø© Ù?Ù?تÙ?ØØ© Ù?Ù?جÙ?Ù?ع بدÙ?Ù? Ù?Ù?Ù?دØ? Ù?غتÙ?ا اÙ?جÙ?Ù?Ù?Ø© باÙ?تظار Ù?ساÙ?Ù?تÙ? Ù?Ù?ا تبخÙ? عÙ?Ù?Ù?ا ",
+ NULL,
+ NULL);
+ notify_notification_set_timeout (n, 3000);
+
+ if (!notify_notification_show (n, NULL)) {
+ fprintf (stderr, "failed to send notification\n");
+ return 1;
+ }
+
+ g_object_unref (G_OBJECT (n));
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]