mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
call-data: Notify on avatar changes
Otherwise the call display will not update.
This commit is contained in:
parent
5919182c17
commit
2bbb923226
1 changed files with 14 additions and 0 deletions
|
@ -217,6 +217,15 @@ on_notify_name (CallsUiCallData *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
on_notify_avatar (CallsUiCallData *self)
|
||||||
|
{
|
||||||
|
g_assert (CALLS_IS_UI_CALL_DATA (self));
|
||||||
|
|
||||||
|
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_AVATAR_ICON]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_call_data (CallsUiCallData *self,
|
set_call_data (CallsUiCallData *self,
|
||||||
CallsCall *call)
|
CallsCall *call)
|
||||||
|
@ -244,6 +253,11 @@ set_call_data (CallsUiCallData *self,
|
||||||
G_CALLBACK (on_notify_name),
|
G_CALLBACK (on_notify_name),
|
||||||
self,
|
self,
|
||||||
G_CONNECT_SWAPPED);
|
G_CONNECT_SWAPPED);
|
||||||
|
g_signal_connect_object (self->best_match,
|
||||||
|
"notify::avatar",
|
||||||
|
G_CALLBACK (on_notify_avatar),
|
||||||
|
self,
|
||||||
|
G_CONNECT_SWAPPED);
|
||||||
self->call = call;
|
self->call = call;
|
||||||
|
|
||||||
g_signal_connect_object (self->call,
|
g_signal_connect_object (self->call,
|
||||||
|
|
Loading…
Reference in a new issue