From 07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Thu, 29 Mar 2012 15:12:10 +0200 Subject: new-chatroom-dialog: use gtk_list_store_insert_with_values() --- src/empathy-new-chatroom-dialog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index df30c2a85..dd7e70ac1 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -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), -- cgit v1.2.3