diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:12:10 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:24:43 +0800 |
commit | 07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa (patch) | |
tree | 3e0615f48ce2212bfea984f1702dbe1961e159cd | |
parent | 297eb577229dd46d1ed26255908c9802b5267372 (diff) | |
download | gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar.gz gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar.bz2 gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar.lz gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar.xz gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.tar.zst gsoc2013-empathy-07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa.zip |
new-chatroom-dialog: use gtk_list_store_insert_with_values()
-rw-r--r-- | src/empathy-new-chatroom-dialog.c | 4 |
1 files changed, 1 insertions, 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), |