]> git.0d.be Git - empathy.git/commitdiff
the status in EmpathyIdle is the status_message not the status string
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 18 Aug 2009 18:13:14 +0000 (19:13 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 18 Aug 2009 18:13:14 +0000 (19:13 +0100)
libempathy/empathy-idle.c

index b77dd0732d6c2e659ca751646e83eb8408655884..94764f420f75f5458a9026e2ece8a0eaf40725b9 100644 (file)
@@ -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");