/pidgin/main: fc0195d8a917: Fix reloading webviews.

Elliott Sales de Andrade qulogic at pidgin.im
Thu Jul 26 17:59:19 EDT 2012


Changeset: fc0195d8a91753d140dcbc8ed535e8f15c12db7a
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-26 00:51 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/fc0195d8a917

Description:

Fix reloading webviews.

Apparently, when imhtml said append_text, it really meant HTML.

diffstat:

 pidgin/gtkpounce.c  |  2 --
 pidgin/gtkrequest.c |  7 ++-----
 2 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff --git a/pidgin/gtkpounce.c b/pidgin/gtkpounce.c
--- a/pidgin/gtkpounce.c
+++ b/pidgin/gtkpounce.c
@@ -943,9 +943,7 @@ pidgin_pounce_editor_show(PurpleAccount 
 													  "send-message",
 													  "message")) != NULL)
 		{
-			char *tmp = g_markup_escape_text(value, -1);
 			gtk_webview_append_html(GTK_WEBVIEW(dialog->send_msg_entry), value);
-			g_free(tmp);
 		}
 
 		if ((value = purple_pounce_action_get_attribute(cur_pounce,
diff --git a/pidgin/gtkrequest.c b/pidgin/gtkrequest.c
--- a/pidgin/gtkrequest.c
+++ b/pidgin/gtkrequest.c
@@ -426,11 +426,8 @@ pidgin_request_input(const char *title, 
 		frame = pidgin_create_webview(TRUE, &entry, &toolbar, NULL);
 		gtk_widget_set_size_request(entry, 320, 130);
 		gtk_widget_set_name(entry, "pidgin_request_webview");
-		if (default_value != NULL) {
-			char *tmp = g_markup_escape_text(default_value, -1);
-			gtk_webview_append_html(GTK_WEBVIEW(entry), tmp);
-			g_free(tmp);
-		}
+		if (default_value != NULL)
+			gtk_webview_append_html(GTK_WEBVIEW(entry), default_value);
 		gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
 		gtk_widget_show(frame);
 	}



More information about the Commits mailing list