Mercurial > pidgin
diff src/gtkimhtml.h @ 11224:409d6a11da51
[gaim-migrate @ 13360]
Restrict the conversation scrollback. Current default is 4000 lines. This also fixes the IM images not actually being cleared by gtk_imhtml_clear().
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 10 Aug 2005 21:13:44 +0000 |
parents | 364a2ef907ae |
children | 477e5cca8287 |
line wrap: on
line diff
--- a/src/gtkimhtml.h Wed Aug 10 05:45:17 2005 +0000 +++ b/src/gtkimhtml.h Wed Aug 10 21:13:44 2005 +0000 @@ -347,11 +347,21 @@ void gtk_imhtml_scroll_to_end(GtkIMHtml *imhtml); /** + * Delete the contents of a GTK+ IM/HTML between start and end. + * + * @param imhtml The GTK+ IM/HTML. + * @param start a postition in the imhtml's buffer + * @param end another postition in the imhtml's buffer + */ +void gtk_imhtml_delete(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end); + +/** * Purges the contents from a GTK+ IM/HTML and resets formatting. * * @param imhtml The GTK+ IM/HTML. */ -void gtk_imhtml_clear(GtkIMHtml *imhtml); +#define gtk_imhtml_clear(imhtml) \ + gtk_imhtml_delete(imhtml, NULL, NULL) /** * Scrolls a GTK+ IM/HTML up by one page.