diff console/libgnt/gnttextview.h @ 15172:a00712d0522e

[gaim-migrate @ 17957] Show 'ABC is typing...' in the conversation window for typing notification. seanegan suggested this, and it sounded like an interesting thing to do. The change in gnttextview.c will need some more work if it is to be used for some other task, but its current use should be OK. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 11 Dec 2006 06:02:15 +0000
parents c01f62c83647
children 1c8f1dc50685
line wrap: on
line diff
--- a/console/libgnt/gnttextview.h	Mon Dec 11 05:35:19 2006 +0000
+++ b/console/libgnt/gnttextview.h	Mon Dec 11 06:02:15 2006 +0000
@@ -27,6 +27,8 @@
 
 	GString *string;
 	GList *list;        /* List of GntTextLine */
+
+	GList *tags;       /* A list of tags */
 };
 
 typedef enum
@@ -62,6 +64,8 @@
 
 void gnt_text_view_append_text_with_flags(GntTextView *view, const char *text, GntTextFormatFlags flags);
 
+void gnt_text_view_append_text_with_tag(GntTextView *view, const char *text, GntTextFormatFlags flags, const char *tag);
+
 /* Move the cursor to the beginning of the next line and resets text-attributes.
  * It first completes the current line with the current text-attributes. */
 void gnt_text_view_next_line(GntTextView *view);
@@ -74,6 +78,9 @@
 
 int gnt_text_view_get_lines_above(GntTextView *view);
 
+/* If text is NULL, then the tag is removed. */
+int gnt_text_view_tag_change(GntTextView *view, const char *name, const char *text, gboolean all);
+
 G_END_DECLS
 
 #endif /* GNT_TEXT_VIEW_H */