From c9f2cd4f71e619f5a418090981afebbef43226c1 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 25 Jan 2011 11:13:51 +0100 Subject: rename EmpathyIdle to EmpathyPresenceManager (#640532) It's doing more than idle management now. --- libempathy-gtk/empathy-presence-chooser.c | 22 +++++++++++----------- libempathy-gtk/empathy-ui-utils.c | 1 - 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index 33bf02811..2c8a3c871 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -37,7 +37,7 @@ #include #include -#include +#include #include #include @@ -99,7 +99,7 @@ typedef enum { } PresenceChooserEntryType; typedef struct { - EmpathyIdle *idle; + EmpathyPresenceManager *presence_mgr; EmpathyConnectivity *connectivity; gboolean editing_status; @@ -433,7 +433,7 @@ mc_set_custom_state (EmpathyPresenceChooser *self) DEBUG ("Sending state to MC-> %d (%s)", priv->state, status); - empathy_idle_set_presence (priv->idle, priv->state, status); + empathy_presence_manager_set_presence (priv->presence_mgr, priv->state, status); } static void @@ -664,7 +664,7 @@ presence_chooser_changed_cb (GtkComboBox *self, gpointer user_data) COL_STATUS_TEXT, &status, -1); - empathy_idle_set_presence (priv->idle, priv->state, status); + empathy_presence_manager_set_presence (priv->presence_mgr, priv->state, status); g_free (status); } @@ -922,7 +922,7 @@ presence_chooser_constructed (GObject *object) G_CALLBACK (presence_chooser_entry_focus_out_cb), chooser); - priv->idle = empathy_idle_dup_singleton (); + priv->presence_mgr = empathy_presence_manager_dup_singleton (); priv->account_manager = tp_account_manager_dup (); g_signal_connect_swapped (priv->account_manager, @@ -970,10 +970,10 @@ presence_chooser_finalize (GObject *object) if (priv->account_manager != NULL) g_object_unref (priv->account_manager); - g_signal_handlers_disconnect_by_func (priv->idle, + g_signal_handlers_disconnect_by_func (priv->presence_mgr, presence_chooser_presence_changed_cb, object); - g_object_unref (priv->idle); + g_object_unref (priv->presence_mgr); g_object_unref (priv->connectivity); if (priv->not_favorite_pixbuf != NULL) @@ -1197,11 +1197,11 @@ static void presence_chooser_set_state (TpConnectionPresenceType state, const gchar *status) { - EmpathyIdle *idle; + EmpathyPresenceManager *presence_mgr; - idle = empathy_idle_dup_singleton (); - empathy_idle_set_presence (idle, state, status); - g_object_unref (idle); + presence_mgr = empathy_presence_manager_dup_singleton (); + empathy_presence_manager_set_presence (presence_mgr, state, status); + g_object_unref (presence_mgr); } static void diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index e2946e513..ca63a0c2c 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -50,7 +50,6 @@ #include #include #include -#include #include void -- cgit v1.2.3