diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-22 12:24:30 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-22 12:34:29 +0100 |
commit | df39cd769a720cebd6d5b6e709247907f9b7a393 (patch) | |
tree | 3a89315e2b530ccef95d6ee654e36752ff52513d | |
parent | f1640d01aa1795ad1762b0c62c5d683f78912f17 (diff) |
conn-presence: construct_contact_statuses_cb: reindent and use tp_g_value_slice_new
-rw-r--r-- | src/conn-presence.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/conn-presence.c b/src/conn-presence.c index 967e71f33..df3cc28d9 100644 --- a/src/conn-presence.c +++ b/src/conn-presence.c @@ -119,14 +119,13 @@ construct_contact_statuses_cb (GObject *obj, parameters = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) tp_g_value_slice_free); - if (status_message != NULL) { - message = g_slice_new0 (GValue); - g_value_init (message, G_TYPE_STRING); - g_value_set_static_string (message, status_message); - - g_hash_table_insert (parameters, "message", message); - } + if (status_message != NULL) + { + message = tp_g_value_slice_new (G_TYPE_STRING); + g_value_set_static_string (message, status_message); + g_hash_table_insert (parameters, "message", message); + } contact_status = tp_presence_status_new (status, parameters); g_hash_table_destroy (parameters); |