Mercurial > pidgin
comparison src/gtkimhtml.h @ 10526:55e7d72fc09a
[gaim-migrate @ 11843]
maquina writes:
This patch implements a custom smiley API, and it also
implements custom smileys for the msn protocol. As it
stands, it is not able to cache custom smileys, and is
not able to redefine a custom smiley without opening a
new conversation.
I modified it quite a bit, and didn't test it at all, so it probably
doesn't work anymore. I'm not quite done with it yet either.
Also, this is just receiving custom smileys.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 18 Jan 2005 18:31:32 +0000 |
parents | ddea15f4cbc2 |
children | 74180743304a |
comparison
equal
deleted
inserted
replaced
10525:ddea15f4cbc2 | 10526:55e7d72fc09a |
---|---|
147 struct _GtkIMHtmlSmiley { | 147 struct _GtkIMHtmlSmiley { |
148 gchar *smile; | 148 gchar *smile; |
149 gchar *file; | 149 gchar *file; |
150 GdkPixbufAnimation *icon; | 150 GdkPixbufAnimation *icon; |
151 gboolean hidden; | 151 gboolean hidden; |
152 GdkPixbufLoader *loader; | |
152 }; | 153 }; |
153 | 154 |
154 struct _GtkIMHtmlScalable { | 155 struct _GtkIMHtmlScalable { |
155 void (*scale)(struct _GtkIMHtmlScalable *, int, int); | 156 void (*scale)(struct _GtkIMHtmlScalable *, int, int); |
156 void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | 157 void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); |
244 * @return The GTK IM/HTML widget created. | 245 * @return The GTK IM/HTML widget created. |
245 */ | 246 */ |
246 GtkWidget *gtk_imhtml_new(void *, void *); | 247 GtkWidget *gtk_imhtml_new(void *, void *); |
247 | 248 |
248 /** | 249 /** |
250 * Returns the smiley object associated with the text. | |
251 * | |
252 * @param imhtml The GTK IM/HTML. | |
253 * @param sml The name of the smiley category. | |
254 * @param text The text associated with the smiley. | |
255 */ | |
256 | |
257 GtkIMHtmlSmiley *gtk_imhtml_smiley_get(GtkIMHtml * imhtml, | |
258 const gchar * sml, const gchar * text); | |
259 | |
260 | |
261 /** | |
249 * Associates a smiley with a GTK IM/HTML. | 262 * Associates a smiley with a GTK IM/HTML. |
250 * | 263 * |
251 * @param imhtml The GTK IM/HTML. | 264 * @param imhtml The GTK IM/HTML. |
252 * @param sml The name of the smiley category. | 265 * @param sml The name of the smiley category. |
253 * @param smiley The GtkIMSmiley to associate. | 266 * @param smiley The GtkIMSmiley to associate. |