[empathy] idle: make empathy_idle_get_status static



commit 5e6b2ce12834a5b9a39ebfda3347377a52d00fac
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Nov 18 11:47:13 2009 +0000

    idle: make empathy_idle_get_status static
    
    It's not used anymore and other components should use the account manager
    directly.

 libempathy/empathy-idle.c |   36 ++++++++++++++++++------------------
 libempathy/empathy-idle.h |    1 -
 2 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 03b27a1..14d7c48 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -340,6 +340,24 @@ idle_constructor (GType type,
 	return retval;
 }
 
+static const gchar *
+empathy_idle_get_status (EmpathyIdle *idle)
+{
+	EmpathyIdlePriv *priv;
+
+	priv = GET_PRIV (idle);
+
+	if (G_UNLIKELY (!priv->ready))
+		g_critical (G_STRLOC ": %s called before AccountManager ready",
+				G_STRFUNC);
+
+	if (!priv->status) {
+		return empathy_presence_get_default_message (priv->state);
+	}
+
+	return priv->status;
+}
+
 static void
 idle_get_property (GObject    *object,
 		   guint       param_id,
@@ -563,24 +581,6 @@ empathy_idle_set_state (EmpathyIdle *idle,
 	empathy_idle_set_presence (idle, state, priv->status);
 }
 
-const gchar *
-empathy_idle_get_status (EmpathyIdle *idle)
-{
-	EmpathyIdlePriv *priv;
-
-	priv = GET_PRIV (idle);
-
-	if (G_UNLIKELY (!priv->ready))
-		g_critical (G_STRLOC ": %s called before AccountManager ready",
-				G_STRFUNC);
-
-	if (!priv->status) {
-		return empathy_presence_get_default_message (priv->state);
-	}
-
-	return priv->status;
-}
-
 void
 empathy_idle_set_status (EmpathyIdle *idle,
 			 const gchar *status)
diff --git a/libempathy/empathy-idle.h b/libempathy/empathy-idle.h
index 105e183..687742c 100644
--- a/libempathy/empathy-idle.h
+++ b/libempathy/empathy-idle.h
@@ -52,7 +52,6 @@ EmpathyIdle *empathy_idle_dup_singleton       (void);
 TpConnectionPresenceType   empathy_idle_get_state           (EmpathyIdle *idle);
 void         empathy_idle_set_state           (EmpathyIdle *idle,
 					       TpConnectionPresenceType   state);
-const gchar *empathy_idle_get_status          (EmpathyIdle *idle);
 void         empathy_idle_set_status          (EmpathyIdle *idle,
 					       const gchar *status);
 void         empathy_idle_set_presence        (EmpathyIdle *idle,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]