Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
96d23df3
Commit
96d23df3
authored
Jun 29, 2016
by
Erwan Croze
👋🏻
Browse files
Reloading of the friend list after going to the chat room with shortcut
parent
a3b3867a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/friendlist.c
View file @
96d23df3
...
...
@@ -172,12 +172,18 @@ gboolean linphone_gtk_on_key_press(GtkWidget *widget, GdkEvent *event, gpointer
if
(
gtk_tree_model_get_iter_first
(
model
,
&
iter
))
{
int
index
=
0
;
LinphoneFriend
*
lf
=
NULL
;
LinphoneChatRoom
*
cr
;
do
{
if
(
index
==
key
)
{
const
LinphoneAddress
*
uri
;
gtk_tree_model_get
(
model
,
&
iter
,
FRIEND_CHATROOM
,
&
cr
,
-
1
);
gtk_tree_model_get
(
model
,
&
iter
,
FRIEND_ID
,
&
lf
,
-
1
);
uri
=
linphone_friend_get_address
(
lf
);
linphone_gtk_friend_list_set_chat_conversation
(
uri
);
if
(
lf
!=
NULL
)
linphone_gtk_friend_list_set_chat_conversation
(
uri
);
if
(
cr
!=
NULL
){
linphone_gtk_mark_chat_read
(
cr
);
linphone_gtk_friend_list_update_button_display
(
GTK_TREE_VIEW
(
friendlist
));
}
return
TRUE
;
}
index
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment