changeset 20634:275fe4d67158

When entering the message for a substatus, get the text from the imhtml using gtk_imhtml_get_markup() instead of gtk_imhtml_get_text() so that we grab the HTML version and not the plain text version. This allows people to have HTML in substatuses. Whoops. Fixes #3268.
author Mark Doliner <mark@kingant.net>
date Mon, 24 Sep 2007 08:17:19 +0000
parents 4c910fcb5b0a
children 84c80c8b0e40 c1b559a2610f
files pidgin/gtksavedstatuses.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksavedstatuses.c	Mon Sep 24 01:47:27 2007 +0000
+++ b/pidgin/gtksavedstatuses.c	Mon Sep 24 08:17:19 2007 +0000
@@ -1411,7 +1411,7 @@
 					   -1);
 	type = purple_account_get_status_type(dialog->account, id);
 	if (purple_status_type_get_attr(type, "message") != NULL)
-		message = gtk_imhtml_get_text(GTK_IMHTML(dialog->message), NULL, NULL);
+		message = gtk_imhtml_get_markup(GTK_IMHTML(dialog->message));
 	name = purple_status_type_get_name(type);
 
 	status_editor = dialog->status_editor;