From 1def4c35859c06306000205bb9d1836fc7cbcbe5 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 13 May 2021 18:19:21 +0200 Subject: [PATCH] plugins: provider: Use CallsOrigin instead of derived types for GListStore Otherwise we run into trouble when using `g_list_store_find()` --- plugins/dummy/calls-dummy-provider.c | 2 +- plugins/mm/calls-mm-provider.c | 2 +- plugins/ofono/calls-ofono-provider.c | 2 +- plugins/sip/calls-sip-provider.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dummy/calls-dummy-provider.c b/plugins/dummy/calls-dummy-provider.c index 3fd7d31..78ee07c 100644 --- a/plugins/dummy/calls-dummy-provider.c +++ b/plugins/dummy/calls-dummy-provider.c @@ -146,7 +146,7 @@ calls_dummy_provider_message_source_interface_init (CallsMessageSourceInterface static void calls_dummy_provider_init (CallsDummyProvider *self) { - self->origins = g_list_store_new (CALLS_TYPE_DUMMY_ORIGIN); + self->origins = g_list_store_new (CALLS_TYPE_ORIGIN); } diff --git a/plugins/mm/calls-mm-provider.c b/plugins/mm/calls-mm-provider.c index db7d233..ebd048c 100644 --- a/plugins/mm/calls-mm-provider.c +++ b/plugins/mm/calls-mm-provider.c @@ -433,7 +433,7 @@ static void calls_mm_provider_init (CallsMMProvider *self) { self->status = g_strdup (_("Initialised")); - self->origins = g_list_store_new (CALLS_TYPE_MM_ORIGIN); + self->origins = g_list_store_new (CALLS_TYPE_ORIGIN); } diff --git a/plugins/ofono/calls-ofono-provider.c b/plugins/ofono/calls-ofono-provider.c index e6b0ba4..b3e6fbf 100644 --- a/plugins/ofono/calls-ofono-provider.c +++ b/plugins/ofono/calls-ofono-provider.c @@ -546,7 +546,7 @@ calls_ofono_provider_init (CallsOfonoProvider *self) self->status = g_strdup (_("Initialised")); self->modems = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref); - self->origins = g_list_store_new (CALLS_TYPE_OFONO_ORIGIN); + self->origins = g_list_store_new (CALLS_TYPE_ORIGIN); } diff --git a/plugins/sip/calls-sip-provider.c b/plugins/sip/calls-sip-provider.c index fb66eae..bb8a1cc 100644 --- a/plugins/sip/calls-sip-provider.c +++ b/plugins/sip/calls-sip-provider.c @@ -416,7 +416,7 @@ calls_sip_provider_init (CallsSipProvider *self) self->credentials = g_hash_table_new_full (NULL, NULL, g_object_unref, g_object_unref); - self->origins = g_list_store_new (CALLS_TYPE_SIP_ORIGIN); + self->origins = g_list_store_new (CALLS_TYPE_ORIGIN); if (filename_env && filename_env[0] != '\0') self->filename = g_strdup (filename_env);