From 3d393990d8c74b24e9b774414717bf16cb2bc00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Fri, 11 Sep 2015 21:15:11 +0200 Subject: [PATCH] Simplify the friends list store --- gtk/friendlist.c | 6 +----- gtk/main.ui | 28 +++++++--------------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/gtk/friendlist.c b/gtk/friendlist.c index 8017ca85e..f3a8fbdcc 100644 --- a/gtk/friendlist.c +++ b/gtk/friendlist.c @@ -28,9 +28,7 @@ enum{ FRIEND_ID, FRIEND_CHATROOM, FRIEND_SIP_ADDRESS, - FRIEND_CALL, FRIEND_CHAT, - FRIEND_ICON_SIZE, FRIEND_LIST_NCOL }; @@ -711,9 +709,7 @@ void linphone_gtk_show_friends(void){ gtk_list_store_append(store,&iter); gtk_list_store_set(store,&iter,FRIEND_NAME, display,FRIEND_ID,lf, FRIEND_PRESENCE_IMG, send_subscribe ? status_to_icon_name(linphone_friend_get_status(lf)) : NULL, - FRIEND_CHAT,"linphone-chat-nothing", - FRIEND_CALL,"linphone-start-call2", - FRIEND_ICON_SIZE, GTK_ICON_SIZE_LARGE_TOOLBAR, -1); + FRIEND_CHAT,"linphone-chat-nothing", -1); cr=linphone_gtk_create_chatroom(f_uri); gtk_list_store_set(store,&iter,FRIEND_CHATROOM,cr,-1); nbmsg=linphone_chat_room_get_unread_messages_count(cr); diff --git a/gtk/main.ui b/gtk/main.ui index b683e5575..2b0b45dff 100644 --- a/gtk/main.ui +++ b/gtk/main.ui @@ -30,37 +30,27 @@ - - - - linphone-status-online Toto toto@sip.linphone.org - linphone-call - linphone-chat - large-toolbar + linphone-chat-nothing linphone-status-offline Toto2 toto2@sip.linphone.org - linphone-call - linphone-chat - large-toolbar + linphone-chat-nothing linphone-status-offline Toto3 toto3@sip.linphone.org - linphone-call - linphone-chat - large-toolbar + linphone-chat-nothing @@ -486,7 +476,6 @@ 0 - 7 @@ -506,11 +495,9 @@ - - - 5 - 7 - + + linphone-start-call2 + @@ -519,8 +506,7 @@ - 6 - 7 + 5