gobjectification.conversation: 3aa5886f: Make sure 'notify' emits when changing t...

sadrul at pidgin.im sadrul at pidgin.im
Sat Jul 24 23:55:37 EDT 2010


----------------------------------------------------------------------
Revision: 3aa5886f6fa130b0a05b1389c03f5e57ec2cdb3c
Parent:   d02e6bfe171111664a65f57da2a9139cb3ebc4c3
Author:   sadrul at pidgin.im
Date:     07/24/10 23:58:24
Branch:   im.pidgin.gobjectification.conversation
URL: http://d.pidgin.im/viewmtn/revision/info/3aa5886f6fa130b0a05b1389c03f5e57ec2cdb3c

Changelog: 

Make sure 'notify' emits when changing the name using g_object_set.

Changes against parent d02e6bfe171111664a65f57da2a9139cb3ebc4c3

  patched  libpurple/conversation/conv.c

-------------- next part --------------
============================================================
--- libpurple/conversation/conv.c	0aaa5e55ff81a309a8df331adcd74acc926ad2f5
+++ libpurple/conversation/conv.c	9d9bacdf692a53a044c6ea1fea13400380d62b9b
@@ -93,8 +93,7 @@ purple_conversation_set_property (GObjec
 			priv->account = g_value_get_object(value);
 			break;
 		case PROP_NAME:
-			g_free(priv->name);
-			priv->name = g_strdup(g_value_get_string(value));
+			purple_conversation_set_name(conv, g_value_get_string(value));
 			break;
 		case PROP_BUDDY_ICON:
 			purple_conversation_set_icon(conv, g_value_get_pointer(value)); /* XXX: */


More information about the Commits mailing list