From 69c530dda81dab980b35a478e309b416792f6158 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 26 Jan 2022 14:46:01 +0100 Subject: [PATCH] dummy: provider: Fake being a modem This is useful to avoid the "No modem" warning in the UI and helps us avoiding to special case the dummy provider/origins. --- plugins/dummy/calls-dummy-provider.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/dummy/calls-dummy-provider.c b/plugins/dummy/calls-dummy-provider.c index 01094e8..869d14e 100644 --- a/plugins/dummy/calls-dummy-provider.c +++ b/plugins/dummy/calls-dummy-provider.c @@ -107,6 +107,12 @@ calls_dummy_provider_get_protocols (CallsProvider *provider) return supported_protocols; } +static gboolean +calls_dummy_provider_is_modem (CallsProvider *provider) +{ + return TRUE; +} + static void constructed (GObject *object) { @@ -147,6 +153,7 @@ calls_dummy_provider_class_init (CallsDummyProviderClass *klass) provider_class->get_status = calls_dummy_provider_get_status; provider_class->get_origins = calls_dummy_provider_get_origins; provider_class->get_protocols = calls_dummy_provider_get_protocols; + provider_class->is_modem = calls_dummy_provider_is_modem; }