pidgin: 399191b4: Implement webview formatting clearing.
qulogic at pidgin.im
qulogic at pidgin.im
Mon Feb 27 18:11:52 EST 2012
----------------------------------------------------------------------
Revision: 399191b455275ea1846078765377597030ef8f60
Parent: 78f2facd08a9b906e2ab5491bb828763c80ea46a
Author: qulogic at pidgin.im
Date: 02/26/12 22:15:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/399191b455275ea1846078765377597030ef8f60
Changelog:
Implement webview formatting clearing.
Changes against parent 78f2facd08a9b906e2ab5491bb828763c80ea46a
patched pidgin/gtkwebview.c
-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c f955014ec594310352623fae0d77ac02a390d89d
+++ pidgin/gtkwebview.c 803e2abf22b1d7477a1f9227064ffc86c6795708
@@ -314,6 +314,7 @@ webview_clear_formatting(GtkWebView *web
webview_clear_formatting(GtkWebView *webview)
{
GtkWebViewPriv *priv = GTK_WEBVIEW_GET_PRIVATE(webview);
+ WebKitDOMDocument *dom;
if (!webkit_web_view_get_editable(WEBKIT_WEB_VIEW(webview)))
return;
@@ -335,6 +336,9 @@ webview_clear_formatting(GtkWebView *web
g_free(priv->edit.background);
priv->edit.background = NULL;
+
+ dom = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(webview));
+ webkit_dom_document_exec_command(dom, "removeFormat", FALSE, "");
}
static void
More information about the Commits
mailing list