diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-08-14 15:54:18 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-08-14 15:54:18 +0800 |
commit | fcaa64708af939576981c9e5d54b6d34e36da404 (patch) | |
tree | 43ce01a30ad70afbbc75a1699cbe9b6e57a6f9a8 /libempathy | |
parent | b49251eb4d9806d9c370ad1a64b107eaaf8284e2 (diff) | |
download | gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar.gz gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar.bz2 gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar.lz gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar.xz gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.tar.zst gsoc2013-empathy-fcaa64708af939576981c9e5d54b6d34e36da404.zip |
reorder some functions
svn path=/trunk/; revision=1333
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-idle.c | 46 |
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) |