mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
application: Use the country code
This commit is contained in:
parent
7d69d78b70
commit
e5832bbad3
1 changed files with 6 additions and 1 deletions
|
@ -420,10 +420,15 @@ open_tel_uri (CallsApplication *self,
|
||||||
g_autoptr (EPhoneNumber) number = NULL;
|
g_autoptr (EPhoneNumber) number = NULL;
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
g_autofree gchar *dial_str = NULL;
|
g_autofree gchar *dial_str = NULL;
|
||||||
|
g_autofree gchar *country_code = NULL;
|
||||||
|
|
||||||
|
g_object_get (calls_manager_get_default (),
|
||||||
|
"country-code", &country_code,
|
||||||
|
NULL);
|
||||||
|
|
||||||
g_debug ("Opening tel URI `%s'", uri);
|
g_debug ("Opening tel URI `%s'", uri);
|
||||||
|
|
||||||
number = e_phone_number_from_string (uri, NULL, &error);
|
number = e_phone_number_from_string (uri, country_code, &error);
|
||||||
if (!number)
|
if (!number)
|
||||||
{
|
{
|
||||||
g_autofree gchar *msg =
|
g_autofree gchar *msg =
|
||||||
|
|
Loading…
Reference in a new issue