pidgin: dddfde8f: Use purple_markup_escape_text instead of...

sadrul at pidgin.im sadrul at pidgin.im
Thu Jul 9 15:35:27 EDT 2009


-----------------------------------------------------------------
Revision: dddfde8f4d668612cab0093528f9bd0323979050
Ancestor: b800217e0fd30890fb4cb2f3c05bf6dacc8a62f3
Author: sadrul at pidgin.im
Date: 2009-07-09T17:20:08
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/dddfde8f4d668612cab0093528f9bd0323979050

Modified files:
        finch/gntconv.c

ChangeLog: 

Use purple_markup_escape_text instead of the glib version.

-------------- next part --------------
============================================================
--- finch/gntconv.c	5cb53c8b18e5d2746682be57e3ac178cd5054b1e
+++ finch/gntconv.c	e73fe4cec8ad7e37c7b56530966b0ca07277c0f9
@@ -191,10 +191,7 @@ entry_key_pressed(GntWidget *w, FinchCon
 	}
 	else
 	{
-		char *escape = g_markup_escape_text((*text == '/' ? text + 1 : text), -1);
-		char *apos = purple_strreplace(escape, "'", "'");
-		g_free(escape);
-		escape = apos;
+		char *escape = purple_markup_escape_text((*text == '/' ? text + 1 : text), -1);
 		switch (purple_conversation_get_type(ggconv->active_conv))
 		{
 			case PURPLE_CONV_TYPE_IM:


More information about the Commits mailing list