[calls] call-data: Notify on avatar changes
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] call-data: Notify on avatar changes
- Date: Fri, 19 Nov 2021 15:59:57 +0000 (UTC)
commit 2bbb923226dd0c1c1f78942bb4b8ecc4b8941546
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Thu Nov 18 10:58:11 2021 +0100
call-data: Notify on avatar changes
Otherwise the call display will not update.
src/calls-ui-call-data.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c
index 2c7a2b10..548e4853 100644
--- a/src/calls-ui-call-data.c
+++ b/src/calls-ui-call-data.c
@@ -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
set_call_data (CallsUiCallData *self,
CallsCall *call)
@@ -244,6 +253,11 @@ set_call_data (CallsUiCallData *self,
G_CALLBACK (on_notify_name),
self,
G_CONNECT_SWAPPED);
+ g_signal_connect_object (self->best_match,
+ "notify::avatar",
+ G_CALLBACK (on_notify_avatar),
+ self,
+ G_CONNECT_SWAPPED);
self->call = call;
g_signal_connect_object (self->call,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]