[Xfce4-commits] <xfce4-notifyd:master> Add test for body markup.

Jérôme Guelfucci noreply at xfce.org
Sat Jan 19 11:38:02 CET 2013


Updating branch refs/heads/master
         to 21fa7774a3d79b71064d7756564f4b09bbeac096 (commit)
       from 7ad839783d3a5c597e90454a829c0e495bb70fb1 (commit)

commit 21fa7774a3d79b71064d7756564f4b09bbeac096
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sat Jan 19 11:36:44 2013 +0100

    Add test for body markup.

 tests/test-text.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/tests/test-text.c b/tests/test-text.c
index 700d4f4..7500cb2 100644
--- a/tests/test-text.c
+++ b/tests/test-text.c
@@ -68,5 +68,24 @@ int main (int argc, char **argv)
 
   g_object_unref (notification);
 
+  g_print ("%s", "Testing notification with markup in the body\n");
+
+  notification = notify_notification_new ("Markup support",
+                                          "<i>Italic</i>\n"
+                                          "<b>Bold</b>\n"
+                                          "<u>Underlined</u>\n"
+                                          "<a href=\"http://www.xfce.org\">Xfce Web site</a>",
+                                          NULL);
+
+  if (!notify_notification_show (notification, NULL))
+    {
+      g_error ("Failed");
+      g_object_unref (notification);
+
+      return EXIT_FAILURE;
+    }
+
+  g_object_unref (notification);
+
   return EXIT_SUCCESS;
 }


More information about the Xfce4-commits mailing list