diff src/gtkimhtml.h @ 4263:74f65a3d2a1f

[gaim-migrate @ 4514] I wanted to get this into cvs before I went to bed. Now proto-specific themes will work. The code's a bit crude at parts and it's not as fast as I'd like, but I can work some more on it tomorrow. Just figured you'd want to get a look at this. 8 penguin points to whoever finds out why gtk_smiley_tree_destroy (commented out right now, causing leakage) segfaults on me now. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 09 Jan 2003 09:41:49 +0000
parents e9f243406a3d
children 8299114f5693
line wrap: on
line diff
--- a/src/gtkimhtml.h	Thu Jan 09 06:38:09 2003 +0000
+++ b/src/gtkimhtml.h	Thu Jan 09 09:41:49 2003 +0000
@@ -38,6 +38,7 @@
 typedef gchar** (*GtkIMHtmlImage) (gchar *url);
 
 typedef struct _GtkSmileyTree  GtkSmileyTree;
+typedef struct _GtkIMHtmlSmiley GtkIMHtmlSmiley;
 
 typedef struct _GtkIMHtml      GtkIMHtml;
 typedef struct _GtkIMHtmlClass GtkIMHtmlClass;
@@ -62,6 +63,13 @@
 	void (*url_clicked) (GtkIMHtml *, const gchar *);
 };
 
+struct _GtkIMHtmlSmiley {
+	gchar *smile;
+	gchar *file;
+	GdkPixbuf *icon;
+	gboolean hidden;
+};
+
 typedef enum
 {
 	GTK_IMHTML_NO_COLOURS   = 1 << 0,
@@ -86,8 +94,7 @@
 
 void       gtk_imhtml_associate_smiley (GtkIMHtml        *imhtml,
 					gchar            *sml,
-					gchar            *text,
-					gchar            *path);
+					GtkIMHtmlSmiley  *smiley);
 
 void       gtk_imhtml_remove_smileys   (GtkIMHtml        *imhtml);