[calls] call-data: Fix assertion in notify handlers



commit cfac02a00cd086f9efa8d83137bd0e7fe37217ab
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Thu Nov 18 10:57:08 2021 +0100

    call-data: Fix assertion in notify handlers

 src/calls-ui-call-data.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c
index ca5a1cc4..2c7a2b10 100644
--- a/src/calls-ui-call-data.c
+++ b/src/calls-ui-call-data.c
@@ -202,7 +202,7 @@ calls_ui_call_data_cui_call_interface_init (CuiCallInterface *iface)
 static void
 on_notify_state (CallsUiCallData *self)
 {
-  g_assert (CALLS_UI_CALL_DATA (self));
+  g_assert (CALLS_IS_UI_CALL_DATA (self));
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_STATE]);
 }
@@ -211,7 +211,7 @@ on_notify_state (CallsUiCallData *self)
 static void
 on_notify_name (CallsUiCallData *self)
 {
-  g_assert (CALLS_UI_CALL_DATA (self));
+  g_assert (CALLS_IS_UI_CALL_DATA (self));
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_DISPLAY_NAME]);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]