mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-06-07 12:29:36 +00:00
ofono: Implement empty emergency call property
See 75cbc30dc0
.
Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
This commit is contained in:
parent
c59fb54a13
commit
c9c6ca05d8
|
@ -59,6 +59,7 @@ enum {
|
||||||
PROP_CALLS,
|
PROP_CALLS,
|
||||||
PROP_MODEM,
|
PROP_MODEM,
|
||||||
PROP_COUNTRY_CODE,
|
PROP_COUNTRY_CODE,
|
||||||
|
PROP_EMERGENCY_NUMBERS,
|
||||||
PROP_LAST_PROP,
|
PROP_LAST_PROP,
|
||||||
};
|
};
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
@ -184,6 +185,10 @@ get_property (GObject *object,
|
||||||
g_value_set_string (value, NULL);
|
g_value_set_string (value, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PROP_EMERGENCY_NUMBERS:
|
||||||
|
g_value_set_boxed (value, NULL);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
@ -560,6 +565,7 @@ calls_ofono_origin_class_init (CallsOfonoOriginClass *klass)
|
||||||
IMPLEMENTS (PROP_NAME, "name");
|
IMPLEMENTS (PROP_NAME, "name");
|
||||||
IMPLEMENTS (PROP_CALLS, "calls");
|
IMPLEMENTS (PROP_CALLS, "calls");
|
||||||
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
||||||
|
IMPLEMENTS (PROP_EMERGENCY_NUMBERS, "emergency-numbers");
|
||||||
|
|
||||||
#undef IMPLEMENTS
|
#undef IMPLEMENTS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue