Mercurial > pidgin
diff pidgin/gtkwebview.h @ 32120:24c8a98a6acc
webkit: Scroll to end when appending html.
Most of the code was taken from imhtml.
author | masca@cpw.pidgin.im |
---|---|
date | Sat, 06 Feb 2010 22:18:05 +0000 |
parents | 1cebf9aa291a |
children | 8e1ec44ede75 |
line wrap: on
line diff
--- a/pidgin/gtkwebview.h Sat Feb 06 22:08:41 2010 +0000 +++ b/pidgin/gtkwebview.h Sat Feb 06 22:18:05 2010 +0000 @@ -73,6 +73,14 @@ GtkWidget* gtk_webview_new (void); /** + * Set the vertical adjustment for the GtkWebView. + * + * @param webview The GtkWebView. + * @param vadj The GtkAdjustment that control the webview. + */ +void gtk_webview_set_vadjustment(GtkWebView *webview, GtkAdjustment *vadj); + +/** * A very basic routine to append html, which can be considered * equivalent to a "document.write" using JavaScript. * @@ -124,4 +132,12 @@ */ char* gtk_webview_quote_js_string (const char* str); +/** + * Scrolls the Webview to the end of its contents. + * + * @param webview The GtkWebView. + * @param smoth A boolean indicating if smooth scrolling should be used. + */ +void gtk_webview_scroll_to_end(GtkWebView *webview, gboolean smooth); + #endif /* _PIDGIN_WEBVIEW_H_ */