]> git.0d.be Git - empathy.git/commitdiff
reorder some functions
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 14 Aug 2008 07:54:18 +0000 (07:54 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 14 Aug 2008 07:54:18 +0000 (07:54 +0000)
svn path=/trunk/; revision=1333

libempathy/empathy-idle.c

index b1d1543a4d431c715b4bf2654bb175c399f49d3a..56544223085bcb7b41a76546682ad72f82f6bec6 100644 (file)
@@ -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,