/dev/qulogic/ckeditor: 0a400bfc9742: Correctly set webview forma...

Elliott Sales de Andrade qulogic at pidgin.im
Fri Aug 9 03:13:30 EDT 2013


Changeset: 0a400bfc97422d64b16c24696d5141b4d5773858
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2013-08-08 01:20 -0400
Branch:	 default
URL: https://hg.pidgin.im/dev/qulogic/ckeditor/rev/0a400bfc9742

Description:

Correctly set webview format functions when read-only.

diffstat:

 pidgin/gtkwebview.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (23 lines):

diff --git a/pidgin/gtkwebview.c b/pidgin/gtkwebview.c
--- a/pidgin/gtkwebview.c
+++ b/pidgin/gtkwebview.c
@@ -1837,11 +1837,19 @@ gtk_webview_set_whole_buffer_formatting_
 void
 gtk_webview_set_format_functions(GtkWebView *webview, GtkWebViewButtons buttons)
 {
+	GtkWebViewPriv *priv;
 	GString *script;
 	int i;
 
 	g_return_if_fail(webview != NULL);
 
+	priv = GTK_WEBVIEW_GET_PRIVATE(webview);
+
+	priv->format_functions = buttons;
+
+	if (!priv->edit.enabled)
+		return;
+
 	script = g_string_new("CKEDITOR.instances.input.config.allowedContent = \"");
 
 	for (i = 0; i < 32; i++) {



More information about the Commits mailing list