diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-19 02:13:14 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-19 02:13:14 +0800 |
commit | eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00 (patch) | |
tree | 9259aded3a72419d850dbe11b358341bee025131 | |
parent | 84a60506e5b1cf6cdbf0e2838c0c37eeb3b4a480 (diff) | |
download | gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar.gz gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar.bz2 gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar.lz gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar.xz gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.tar.zst gsoc2013-empathy-eafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00.zip |
the status in EmpathyIdle is the status_message not the status string
-rw-r--r-- | libempathy/empathy-idle.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index b77dd0732..94764f420 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -102,14 +102,15 @@ idle_presence_changed_cb (EmpathyAccountManager *manager, /* Assume our presence is offline if MC reports UNSET */ state = TP_CONNECTION_PRESENCE_TYPE_OFFLINE; - DEBUG ("Presence changed to '%s' (%d)", status, state); + DEBUG ("Presence changed to '%s' (%d) \"%s\"", status, state, + status_message); g_free (priv->status); priv->state = state; - priv->status = NULL; - if (!EMP_STR_EMPTY (status)) { - priv->status = g_strdup (status); - } + if (EMP_STR_EMPTY (status_message)) + priv->status = NULL; + else + priv->status = g_strdup (status_message); g_object_notify (G_OBJECT (idle), "state"); g_object_notify (G_OBJECT (idle), "status"); |