diff finch/libgnt/test/tv.c @ 19334:fda2d2d99850

Add support to parse and add XHTML in a textview. This we can use for logs, in the conversation window etc. places.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 23 Aug 2007 05:55:57 +0000
parents f104e1d45d85
children 57d350900136 5a0c058c10e6
line wrap: on
line diff
--- a/finch/libgnt/test/tv.c	Sat Aug 18 05:57:52 2007 +0000
+++ b/finch/libgnt/test/tv.c	Thu Aug 23 05:55:57 2007 +0000
@@ -5,6 +5,7 @@
 #include "gntbox.h"
 #include "gntentry.h"
 #include "gnttextview.h"
+#include "gntutils.h"
 
 static gboolean
 key_pressed(GntWidget *w, const char *key, GntWidget *view)
@@ -117,6 +118,8 @@
 	gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "plugins: ", GNT_TEXT_FLAG_BOLD);
 	gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "this is the 4th line\n", GNT_TEXT_FLAG_NORMAL);
 
+	gnt_util_parse_xhtml_to_textview("<p><b>Ohoy hoy!!</b><br/><p>I think this is going to</p> <u> WORK!!! </u><a href='www.google.com'>check this out!!</a></p>", GNT_TEXT_VIEW(view));
+
 #ifdef STANDALONE
 	gnt_main();