Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Evangelos Ribeiro Tzaras
chatty
Commits
e070708c
Commit
e070708c
authored
Aug 12, 2020
by
Mohammed Sadiq
Browse files
user-info-dialog: Use chatty-item API to set avatar
parent
e673a2fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/chatty-user-info-dialog.c
View file @
e070708c
...
...
@@ -86,18 +86,13 @@ show_select_avatar_dialog (ChattyUserInfoDialog *self)
static
void
button_avatar_clicked_cb
(
ChattyUserInfoDialog
*
self
)
{
PurpleContact
*
contact
;
char
*
file_name
=
NULL
;
g_autofree
char
*
file_name
=
NULL
;
file_name
=
show_select_avatar_dialog
(
self
);
if
(
file_name
)
{
contact
=
purple_buddy_get_contact
(
self
->
buddy
);
purple_buddy_icons_node_set_custom_icon_from_file
((
PurpleBlistNode
*
)
contact
,
file_name
);
}
g_free
(
file_name
);
if
(
file_name
)
chatty_item_set_avatar_async
(
CHATTY_ITEM
(
self
->
chat
),
file_name
,
NULL
,
NULL
,
NULL
);
}
...
...
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