diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-24 17:14:53 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-24 17:32:09 +0100 |
commit | 0ca5332db718340aa8546cd828b138c411a99adf (patch) | |
tree | 516e7442872dc2df9e0c027a86fb5e7657acc44f | |
parent | ef4bb34859576d60ee3bb9d80d16ea582dba8e72 (diff) | |
download | telepathy-glib-0ca5332db718340aa8546cd828b138c411a99adf.tar.gz |
get_most_available_presence(): match the doc if no account connected
If no account is connected, doc says we should return
(TP_CONNECTION_PRESENCE_TYPE_OFFLINE, "offline", "") but we use to return
(TP_CONNECTION_PRESENCE_TYPE_OFFLINE, NULL, NULL)
-rw-r--r-- | telepathy-glib/account-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c index 447f4185f..aac416b30 100644 --- a/telepathy-glib/account-manager.c +++ b/telepathy-glib/account-manager.c @@ -352,9 +352,9 @@ _tp_account_manager_update_most_available_presence (TpAccountManager *manager) if (account == NULL) { - priv->most_available_presence = presence; - priv->most_available_status = NULL; - priv->most_available_status_message = NULL; + priv->most_available_presence = TP_CONNECTION_PRESENCE_TYPE_OFFLINE; + priv->most_available_status = g_strdup ("offline"); + priv->most_available_status_message = g_strdup (""); return; } |