]> git.0d.be Git - empathy.git/blobdiff - src/empathy-new-chatroom-dialog.c
Remove useless mission-control includes
[empathy.git] / src / empathy-new-chatroom-dialog.c
index e16da91a7b2076d2fc7f9aeca5a7a5ac6520f989..b36d0d4f5c2bee5fb6a2194e7b699e3353d1a22c 100644 (file)
@@ -32,9 +32,6 @@
 #include <glib/gi18n.h>
 #include <glib/gprintf.h>
 
-#include <libmissioncontrol/mission-control.h>
-#include <libmissioncontrol/mc-profile.h>
-
 #include <libempathy/empathy-tp-roomlist.h>
 #include <libempathy/empathy-chatroom.h>
 #include <libempathy/empathy-utils.h>
@@ -358,14 +355,12 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog)
 {
        EmpathyAccountChooser *account_chooser;
        EmpathyAccount        *account;
-       McProfile             *profile;
        const gchar           *protocol;
        const gchar           *room;
 
        account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser);
        account = empathy_account_chooser_dup_account (account_chooser);
-       profile = empathy_account_get_profile (account);
-       protocol = mc_profile_get_protocol_name (profile);
+       protocol = empathy_account_get_protocol (account);
 
        gtk_entry_set_text (GTK_ENTRY (dialog->entry_server), "");
 
@@ -390,7 +385,6 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog)
        gtk_widget_grab_focus (dialog->entry_room);
 
        g_object_unref (account);
-       g_object_unref (profile);
 }
 
 static void