]> git.0d.be Git - empathy.git/commitdiff
Port EmpathyNEwChatroomDialog to new API
authorXavier Claessens <xclaesse@gmail.com>
Tue, 17 Feb 2009 13:28:36 +0000 (14:28 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:10 +0000 (12:21 +0200)
src/empathy-new-chatroom-dialog.c

index bf107d1b6b2e207a81e4352362bed6a4d62e5dc6..abfdcf0acefa32de6f5d5a5817f61f6eeeb33add 100644 (file)
@@ -533,7 +533,7 @@ static void
 new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
 {
        EmpathyAccountChooser *account_chooser;
-       McAccount             *account;
+       TpConnection          *connection;
        const gchar           *room;
        const gchar           *server = NULL;
        gchar                 *room_name = NULL;
@@ -542,7 +542,7 @@ new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
        server = gtk_entry_get_text (GTK_ENTRY (dialog->entry_server));
 
        account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser);
-       account = empathy_account_chooser_get_account (account_chooser);
+       connection = empathy_account_chooser_get_connection (account_chooser);
 
        if (!EMP_STR_EMPTY (server)) {
                room_name = g_strconcat (room, "@", server, NULL);
@@ -551,7 +551,7 @@ new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
        }
 
        DEBUG ("Requesting channel for '%s'", room_name);
-       empathy_dispatcher_join_muc (account, room_name, NULL, NULL);
+       empathy_dispatcher_join_muc (connection, room_name, NULL, NULL);
 
        g_free (room_name);
 }