pidgin/gtkwebview.h

changeset 33083
e96acbe0e928
parent 33054
177359654a3d
child 33221
0215244831ec
equal deleted inserted replaced
33082:cd284b4ca152 33083:e96acbe0e928
120 * @param html The HTML content to load 120 * @param html The HTML content to load
121 */ 121 */
122 void gtk_webview_load_html_string(GtkWebView *webview, const char *html); 122 void gtk_webview_load_html_string(GtkWebView *webview, const char *html);
123 123
124 /** 124 /**
125 * Requests loading of the given content and sets the selection. You must
126 * include an anchor tag with id='caret' in the HTML string, which will be
127 * used to set the selection. This tag is then removed so that querying the
128 * WebView's HTML contents will no longer return it.
129 *
130 * @param webview The GtkWebView object
131 * @param html The HTML content to load
132 */
133 void gtk_webview_load_html_string_with_selection(GtkWebView *webview, const char *html);
134
135 /**
125 * Execute the JavaScript only after the webkit_webview_load_string 136 * Execute the JavaScript only after the webkit_webview_load_string
126 * loads completely. We also guarantee that the scripts are executed 137 * loads completely. We also guarantee that the scripts are executed
127 * in the order they are called here. This is useful to avoid race 138 * in the order they are called here. This is useful to avoid race
128 * conditions when calling JS functions immediately after opening the 139 * conditions when calling JS functions immediately after opening the
129 * page. 140 * page.

mercurial