mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
plugins: provider: Use CallsOrigin instead of derived types for GListStore
Otherwise we run into trouble when using `g_list_store_find()`
This commit is contained in:
parent
80ec7d8a35
commit
1def4c3585
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue