gobjectification: a4c3df04: Set correct flags on PurpleBuddy propert...

sadrul at pidgin.im sadrul at pidgin.im
Tue Jul 6 01:57:18 EDT 2010


----------------------------------------------------------------------
Revision: a4c3df04fe77dad54c29393726ab20b085ac8131
Parent:   f89b36da5be07f5153a6036edf97a1e5f5789b2f
Author:   sadrul at pidgin.im
Date:     07/06/10 01:29:32
Branch:   im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/a4c3df04fe77dad54c29393726ab20b085ac8131

Changelog: 

Set correct flags on PurpleBuddy properties.

Changes against parent f89b36da5be07f5153a6036edf97a1e5f5789b2f

  patched  libpurple/buddy.c

-------------- next part --------------
============================================================
--- libpurple/buddy.c	ce6153ac11fcd41cf2aaea25c5528b8a907e8f81
+++ libpurple/buddy.c	dc6e8990c10d20a7bb799e3401100b9b29180c69
@@ -522,11 +522,11 @@ PurpleBuddy *purple_buddy_new(PurpleAcco
 	g_return_val_if_fail(account != NULL, NULL);
 	g_return_val_if_fail(name != NULL, NULL);
 
-	return g_object_new(PURPLE_BUDDY_TYPE, 
-									PROP_ACCOUNT_S, account,
-									PROP_NAME_S, name,
-									PROP_ALIAS_S, alias,
-									NULL);
+	return g_object_new(PURPLE_BUDDY_TYPE,
+			PROP_ACCOUNT_S, account,
+			PROP_NAME_S, name,
+			PROP_ALIAS_S, alias,
+			NULL);
 }
 
 /* GObject destructor function */
@@ -637,17 +637,17 @@ purple_buddy_class_init(PurpleBuddyClass
 	g_object_class_install_property(obj_class, PROP_ACCOUNT,
 			g_param_spec_string(PROP_ACCOUNT_S, _("Account"),
 				_("The account for the buddy."), NULL,
-				G_PARAM_CONSTRUCT_ONLY)
+				G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)
 			);
 	g_object_class_install_property(obj_class, PROP_NAME,
 			g_param_spec_string(PROP_NAME_S, _("Name"),
 				_("The name for the buddy."), NULL,
-				G_PARAM_READABLE | G_PARAM_CONSTRUCT_ONLY)
+				G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)
 			);
 	g_object_class_install_property(obj_class, PROP_ALIAS,
 			g_param_spec_string(PROP_ALIAS_S, _("Alias"),
 				_("The alias for the buddy."), NULL,
-				G_PARAM_READWRITE | G_PARAM_CONSTRUCT)
+				G_PARAM_READWRITE)
 			);
 }
 
@@ -657,7 +657,7 @@ purple_buddy_init(GTypeInstance *instanc
 	PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
 	PurpleBuddy *buddy = PURPLE_BUDDY(instance);
 	PurpleBuddyPrivate *priv = PURPLE_BUDDY_GET_PRIVATE(buddy);
-	
+
 	buddy->priv = priv;
 	priv->presence = purple_presence_new_for_buddy(buddy);
 


More information about the Commits mailing list