[empathy] chatrooms-window: use gtk_list_store_insert_with_values()



commit 2736d7a4010eb83102e4e455a1133487d2612bd4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Mar 29 15:12:10 2012 +0200

    chatrooms-window: use gtk_list_store_insert_with_values()

 src/empathy-chatrooms-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-chatrooms-window.c b/src/empathy-chatrooms-window.c
index 1ebe80b..2aa0f05 100644
--- a/src/empathy-chatrooms-window.c
+++ b/src/empathy-chatrooms-window.c
@@ -348,8 +348,7 @@ chatrooms_window_model_add (EmpathyChatroomsWindow *window,
 	model = gtk_tree_view_get_model (view);
 	store = GTK_LIST_STORE (model);
 
-	gtk_list_store_append (store, &iter);
-	gtk_list_store_set (store, &iter,
+	gtk_list_store_insert_with_values (store, &iter, -1,
 			    COL_NAME, empathy_chatroom_get_name (chatroom),
 			    COL_ROOM, empathy_chatroom_get_room (chatroom),
 			    COL_AUTO_CONNECT, empathy_chatroom_get_auto_connect (chatroom),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]