/soc/2013/ankitkv/gobjectification: 3cf3800ed151: changed _point...

Ankit Vani a at nevitus.org
Mon Jul 15 10:15:42 EDT 2013


Changeset: 3cf3800ed151aece0f3137a6f6d486b7601896e1
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-15 19:40 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/3cf3800ed151

Description:

changed _pointer GValue calls to _object for PurpleAccount

diffstat:

 libpurple/media.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (33 lines):

diff --git a/libpurple/media.c b/libpurple/media.c
--- a/libpurple/media.c
+++ b/libpurple/media.c
@@ -198,9 +198,8 @@ purple_media_class_init (PurpleMediaClas
 			G_PARAM_READABLE));
 
 	g_object_class_install_property(gobject_class, PROP_ACCOUNT,
-			g_param_spec_pointer("account",
-			"PurpleAccount",
-			"The account this media session is on.",
+			g_param_spec_object("account", "PurpleAccount",
+			"The account this media session is on.", PURPLE_TYPE_ACCOUNT,
 			G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
 
 	g_object_class_install_property(gobject_class, PROP_CONFERENCE_TYPE,
@@ -360,7 +359,7 @@ purple_media_set_property (GObject *obje
 			media->priv->manager = g_value_dup_object(value);
 			break;
 		case PROP_ACCOUNT:
-			media->priv->account = g_value_get_pointer(value);
+			media->priv->account = g_value_get_object(value);
 			break;
 		case PROP_CONFERENCE_TYPE:
 			media->priv->conference_type =
@@ -421,7 +420,7 @@ purple_media_get_property (GObject *obje
 			g_value_set_object(value, media->priv->backend);
 			break;
 		case PROP_ACCOUNT:
-			g_value_set_pointer(value, media->priv->account);
+			g_value_set_object(value, media->priv->account);
 			break;
 		case PROP_CONFERENCE_TYPE:
 			g_value_set_string(value,



More information about the Commits mailing list