Mercurial > pidgin
diff src/gtkimhtml.h @ 6982:083d1e4a9c78
[gaim-migrate @ 7538]
This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He
rewrote the coreish IM image support so that the binary data gets
ripped out in the prpl and put in an imgstore instead of just being
passed in the same huge as char string as the actual message. This
is good because it's prpl agnostic, or something. It also means
we don't have a silly length of "-1" with pretty much every send or
receive IM function.
It should be crash free, bug free, and memleak free, but additional
testing is always a good thing.
If you like good stuff then you'll love this patch. But don't take
my word for it--ba dun dunt!
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sat, 27 Sep 2003 19:17:21 +0000 |
| parents | 782907a6ae65 |
| children | c7f0a4397d9e |
line wrap: on
line diff
--- a/src/gtkimhtml.h Sat Sep 27 15:45:49 2003 +0000 +++ b/src/gtkimhtml.h Sat Sep 27 19:17:21 2003 +0000 @@ -144,15 +144,20 @@ void gtk_imhtml_show_comments (GtkIMHtml *imhtml, gboolean show); -GString* gtk_imhtml_append_text (GtkIMHtml *imhtml, - const gchar *text, gint len, GtkIMHtmlOptions options); +#define gtk_imhtml_append_text(x, y, z) \ + gtk_imhtml_append_text_with_images(x, y, z, NULL) + +GString* gtk_imhtml_append_text_with_images (GtkIMHtml *imhtml, + const gchar *text, + GtkIMHtmlOptions options, + GSList *images); void gtk_imhtml_clear (GtkIMHtml *imhtml); void gtk_imhtml_page_up (GtkIMHtml *imhtml); void gtk_imhtml_page_down (GtkIMHtml *imhtml); GtkIMHtmlScalable *gtk_imhtml_scalable_new(); -GtkIMHtmlScalable *gtk_imhtml_image_new(GdkPixbuf *img, gchar *filename); +GtkIMHtmlScalable *gtk_imhtml_image_new(GdkPixbuf *img, const gchar *filename); void gtk_imhtml_image_free(GtkIMHtmlScalable *); void gtk_imhtml_image_scale(GtkIMHtmlScalable *, int, int); void gtk_imhtml_image_add_to(GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *);
