aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-11 20:23:20 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-11 20:23:20 +0800
commitd1c5505593fc48280381c9528dfa3f3d96e0c227 (patch)
tree7700a9d4ae443dca4209f38d83f6c2ec30a93b15 /libempathy
parent2bfff0975128998d23f3b384b22c970c6e0818af (diff)
downloadgsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar.gz
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar.bz2
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar.lz
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar.xz
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.tar.zst
gsoc2013-empathy-d1c5505593fc48280381c9528dfa3f3d96e0c227.zip
Make use of tp-glib helpers func for GValue
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@779 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 4d207c4e0..e9977cd93 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -450,12 +450,10 @@ tp_chat_properties_changed_cb (TpProxy *proxy,
property = g_ptr_array_index (priv->properties, j);
if (property->id == id) {
if (property->value) {
- g_value_unset (property->value);
+ g_value_copy (src_value, property->value);
} else {
- property->value = g_slice_new0 (GValue);
+ property->value = tp_g_value_slice_dup (src_value);
}
- g_value_init (property->value, G_VALUE_TYPE (src_value));
- g_value_copy (src_value, property->value);
empathy_debug (DEBUG_DOMAIN, "property %s changed",
property->name);
@@ -661,8 +659,7 @@ tp_chat_finalize (GObject *object)
property = g_ptr_array_index (priv->properties, i);
g_free (property->name);
if (property->value) {
- g_value_unset (property->value);
- g_slice_free (GValue, property->value);
+ tp_g_value_slice_free (property->value);
}
g_slice_free (TpChatProperty, property);
}