1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

best-match: Assert CALLS_IS_BEST_MATCH in private functions

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-02-17 11:06:17 +01:00
parent 51598700d7
commit 690ac121e9

View file

@ -74,6 +74,8 @@ search_view_prepare_cb (FolksSearchView *view,
static void static void
notify_name (CallsBestMatch *self) notify_name (CallsBestMatch *self)
{ {
g_assert (CALLS_IS_BEST_MATCH (self));
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_NAME]); g_object_notify_by_pspec (G_OBJECT (self), props[PROP_NAME]);
} }
@ -81,6 +83,8 @@ notify_name (CallsBestMatch *self)
static void static void
notify_avatar (CallsBestMatch *self) notify_avatar (CallsBestMatch *self)
{ {
g_assert (CALLS_IS_BEST_MATCH (self));
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_AVATAR]); g_object_notify_by_pspec (G_OBJECT (self), props[PROP_AVATAR]);
} }