From fcaa64708af939576981c9e5d54b6d34e36da404 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 14 Aug 2008 07:54:18 +0000 Subject: reorder some functions svn path=/trunk/; revision=1333 --- libempathy/empathy-idle.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'libempathy') 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) { @@ -121,29 +144,6 @@ idle_ext_away_start (EmpathyIdle *idle) 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, -- cgit v1.2.3