origin: Get rid of "numeric-addresses" property
This commit is contained in:
@@ -70,14 +70,6 @@ calls_origin_default_init (CallsOriginInterface *iface)
|
||||
NULL,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
g_object_interface_install_property (
|
||||
iface,
|
||||
g_param_spec_boolean ("numeric-addresses",
|
||||
"Numeric addresses",
|
||||
"Whether this origin can only dial numeric addresses (aka numbers)",
|
||||
TRUE,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
signals[SIGNAL_CALL_ADDED] =
|
||||
g_signal_newv ("call-added",
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
@@ -121,24 +113,6 @@ DEFINE_ORIGIN_GETTER(name, char *, NULL);
|
||||
*/
|
||||
DEFINE_ORIGIN_GETTER(calls, GList *, NULL);
|
||||
|
||||
/**
|
||||
* calls_origin_get_numeric_addresses:
|
||||
* @self: a #CallsOrigin
|
||||
*
|
||||
* Returns: %TRUE if this origin can only dial numeric addresses (i.e. telephone numbers),
|
||||
* %FALSE otherwise.
|
||||
*/
|
||||
gboolean
|
||||
calls_origin_get_numeric_addresses (CallsOrigin *origin)
|
||||
{
|
||||
gboolean numeric;
|
||||
|
||||
g_return_val_if_fail (CALLS_IS_ORIGIN (origin), FALSE);
|
||||
|
||||
g_object_get (origin, "numeric-addresses", &numeric, NULL);
|
||||
return numeric;
|
||||
}
|
||||
|
||||
/**
|
||||
* calls_origin_foreach_call:
|
||||
* @self: a #CallsOrigin
|
||||
|
||||
Reference in New Issue
Block a user