]> git.0d.be Git - empathy.git/commitdiff
new-chatroom-dialog: use gtk_list_store_insert_with_values()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 29 Mar 2012 13:12:10 +0000 (15:12 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 29 Mar 2012 13:24:43 +0000 (15:24 +0200)
src/empathy-new-chatroom-dialog.c

index df30c2a85394060cbe629af9f402d0ea9ef28211..dd7e70ac19b324c7fe0459b27e7f0eb60b57656f 100644 (file)
@@ -617,7 +617,6 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist        *room_list,
                                 EmpathyNewChatroomDialog *dialog)
 {
        GtkListStore     *store;
-       GtkTreeIter       iter;
        gchar            *members;
        gchar            *tooltip;
        const gchar      *need_password;
@@ -645,8 +644,7 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist        *room_list,
        need_password = (empathy_chatroom_get_need_password (chatroom) ?
                GTK_STOCK_DIALOG_AUTHENTICATION : NULL);
 
-       gtk_list_store_append (store, &iter);
-       gtk_list_store_set (store, &iter,
+       gtk_list_store_insert_with_values (store, NULL, -1,
                            COL_NEED_PASSWORD, need_password,
                            COL_INVITE_ONLY, invite_only,
                            COL_NAME, empathy_chatroom_get_name (chatroom),