diff finch/libgnt/gntutils.h @ 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 c8f9584e3221
children 44b4e8bd759b
line wrap: on
line diff
--- a/finch/libgnt/gntutils.h	Sat Aug 18 05:57:52 2007 +0000
+++ b/finch/libgnt/gntutils.h	Thu Aug 23 05:55:57 2007 +0000
@@ -27,6 +27,7 @@
 #include <glib.h>
 
 #include "gnt.h"
+#include "gnttextview.h"
 #include "gntwidget.h"
 
 typedef gpointer (*GDupFunc)(gconstpointer data);
@@ -132,6 +133,16 @@
 void gnt_util_parse_widgets(const char *string, int num, ...);
 
 /**
+ * Parse an XHTML string and add it in a GntTextView with
+ * appropriate text flags.
+ *
+ * @param string   The XHTML string
+ * @param tv       The GntTextView
+ * @return  @c TRUE if the string was added to the textview properly, @c FALSE otherwise.
+ */
+gboolean gnt_util_parse_xhtml_to_textview(const char *string, GntTextView *tv);
+
+/**
  * Make some keypress activate a button when some key is pressed with 'wid' in focus.
  *
  * @param widget  The widget