aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-status-icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-status-icon.c')
-rw-r--r--libempathy-gtk/empathy-status-icon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c
index e22156a00..0aa0a76a5 100644
--- a/libempathy-gtk/empathy-status-icon.c
+++ b/libempathy-gtk/empathy-status-icon.c
@@ -28,8 +28,6 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
-#include <libtelepathy/tp-helpers.h>
-
#include <libmissioncontrol/mission-control.h>
#include <libempathy/gossip-debug.h>
@@ -102,7 +100,7 @@ empathy_status_icon_init (EmpathyStatusIcon *icon)
priv = GET_PRIV (icon);
priv->icon = gtk_status_icon_new ();
- priv->mc = mission_control_new (tp_get_bus ());
+ priv->mc = gossip_mission_control_new ();
status_icon_create_menu (icon);
@@ -182,10 +180,8 @@ status_icon_presence_changed_cb (MissionControl *mc,
g_free (status);
if (state < MC_PRESENCE_AVAILABLE) {
- gtk_widget_set_sensitive (priv->status_item, FALSE);
gtk_widget_set_sensitive (priv->message_item, FALSE);
} else {
- gtk_widget_set_sensitive (priv->status_item, TRUE);
gtk_widget_set_sensitive (priv->message_item, TRUE);
}
}