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:
parent
b00deccdcb
commit
69c530dda8
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue