1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

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.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-26 14:46:01 +01:00
parent b00deccdcb
commit 69c530dda8

View file

@ -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;
}