diff pidgin/gtksavedstatuses.c @ 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 6bf32c9e15a7
children ff4afedf63b5 fdefa5eb46e2
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;