/pidgin/main: abcaf61b570d: Disable formatting if the pluginpref...
Elliott Sales de Andrade
qulogic at pidgin.im
Tue Aug 14 04:03:26 EDT 2012
Changeset: abcaf61b570dd525c89e1b381ee72adbf1067037
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2012-08-12 21:12 -0400
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/abcaf61b570d
Description:
Disable formatting if the pluginpref doesn't allow HTML.
diffstat:
pidgin/gtkpluginpref.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff --git a/pidgin/gtkpluginpref.c b/pidgin/gtkpluginpref.c
--- a/pidgin/gtkpluginpref.c
+++ b/pidgin/gtkpluginpref.c
@@ -134,8 +134,10 @@ make_string_pref(GtkWidget *parent, Purp
gtk_widget_show(spacer);
frame = pidgin_create_webview(TRUE, &webview, &toolbar, NULL);
- if (!(format & PURPLE_STRING_FORMAT_TYPE_HTML))
+ if (!(format & PURPLE_STRING_FORMAT_TYPE_HTML)) {
gtk_widget_destroy(toolbar);
+ gtk_webview_set_format_functions(GTK_WEBVIEW(webview), 0);
+ }
if (format & PURPLE_STRING_FORMAT_TYPE_MULTILINE) {
gchar *tmp = purple_strreplace(purple_prefs_get_string(pref_name), "\n", "<br>");
More information about the Commits
mailing list