aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-idle.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index b1d1543a4..565442230 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -79,6 +79,29 @@ enum {
G_DEFINE_TYPE (EmpathyIdle, empathy_idle, G_TYPE_OBJECT)
+static void
+idle_presence_changed_cb (MissionControl *mc,
+ McPresence state,
+ gchar *status,
+ EmpathyIdle *idle)
+{
+ EmpathyIdlePriv *priv;
+
+ priv = GET_PRIV (idle);
+
+ DEBUG ("Presence changed to '%s' (%d)", status, state);
+
+ g_free (priv->status);
+ priv->state = state;
+ priv->status = NULL;
+ if (!G_STR_EMPTY (status)) {
+ priv->status = g_strdup (status);
+ }
+
+ g_object_notify (G_OBJECT (idle), "state");
+ g_object_notify (G_OBJECT (idle), "status");
+}
+
static gboolean
idle_ext_away_cb (EmpathyIdle *idle)
{
@@ -122,29 +145,6 @@ idle_ext_away_start (EmpathyIdle *idle)
}
static void
-idle_presence_changed_cb (MissionControl *mc,
- McPresence state,
- gchar *status,
- EmpathyIdle *idle)
-{
- EmpathyIdlePriv *priv;
-
- priv = GET_PRIV (idle);
-
- DEBUG ("Presence changed to '%s' (%d)", status, state);
-
- g_free (priv->status);
- priv->state = state;
- priv->status = NULL;
- if (!G_STR_EMPTY (status)) {
- priv->status = g_strdup (status);
- }
-
- g_object_notify (G_OBJECT (idle), "state");
- g_object_notify (G_OBJECT (idle), "status");
-}
-
-static void
idle_session_idle_changed_cb (DBusGProxy *gs_proxy,
gboolean is_idle,
EmpathyIdle *idle)