aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-18 00:56:32 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-18 00:56:32 +0800
commit6c2a10287ca173821152889963efdd6bc66e7a26 (patch)
tree3a72fe3bb77f8a5fd12b6423cbc066ac8a4d66cb
parentacd0172ff0bcc511ec646f8859742542c0cd5393 (diff)
downloadgsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar.gz
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar.bz2
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar.lz
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar.xz
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.tar.zst
gsoc2013-empathy-6c2a10287ca173821152889963efdd6bc66e7a26.zip
Rename desired presence to requested presence
-rw-r--r--libempathy/empathy-account-manager.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 9089e5f43..9a76fdafe 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -56,12 +56,12 @@ typedef struct {
gchar *global_status;
gchar *global_status_message;
- /* desired global presence, could be different
+ /* requested global presence, could be different
* from the actual global one.
*/
- TpConnectionPresenceType desired_presence;
- gchar *desired_status;
- gchar *desired_status_message;
+ TpConnectionPresenceType requested_presence;
+ gchar *requested_status;
+ gchar *requested_status_message;
GHashTable *create_results;
} EmpathyAccountManagerPriv;
@@ -112,9 +112,9 @@ emp_account_enabled_cb (EmpathyAccount *account,
{
g_signal_emit (manager, signals[ACCOUNT_ENABLED], 0, account);
- /* set the desired global presence on the account */
- empathy_account_request_presence (account, priv->desired_presence,
- priv->desired_status, priv->desired_status_message);
+ /* set the requested global presence on the account */
+ empathy_account_request_presence (account, priv->requested_presence,
+ priv->requested_status, priv->requested_status_message);
}
else
g_signal_emit (manager, signals[ACCOUNT_DISABLED], 0, account);
@@ -328,9 +328,9 @@ account_manager_account_ready_cb (GObject *obj,
empathy_account_manager_check_ready (manager);
- /* update the account to the desired global presence */
- empathy_account_request_presence (account, priv->desired_presence,
- priv->desired_status, priv->desired_status_message);
+ /* update the account to the requested global presence */
+ empathy_account_request_presence (account, priv->requested_presence,
+ priv->requested_status, priv->requested_status_message);
}
static EmpathyAccount *
@@ -479,8 +479,8 @@ do_finalize (GObject *obj)
g_free (priv->global_status);
g_free (priv->global_status_message);
- g_free (priv->desired_status);
- g_free (priv->desired_status_message);
+ g_free (priv->requested_status);
+ g_free (priv->requested_status_message);
G_OBJECT_CLASS (empathy_account_manager_parent_class)->finalize (obj);
}
@@ -847,18 +847,18 @@ empathy_account_manager_request_global_presence (
/* save the requested global presence, to use it in case we create
* new accounts or some accounts become ready.
*/
- priv->desired_presence = type;
+ priv->requested_presence = type;
- if (tp_strdiff (priv->desired_status, status))
+ if (tp_strdiff (priv->requested_status, status))
{
- g_free (priv->desired_status);
- priv->desired_status = g_strdup (status);
+ g_free (priv->requested_status);
+ priv->requested_status = g_strdup (status);
}
- if (tp_strdiff (priv->desired_status_message, message))
+ if (tp_strdiff (priv->requested_status_message, message))
{
- g_free (priv->desired_status_message);
- priv->desired_status_message = g_strdup (message);
+ g_free (priv->requested_status_message);
+ priv->requested_status_message = g_strdup (message);
}
}