diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-08-09 15:33:54 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-08-20 10:19:56 +0200 |
commit | 3f5f9c2d38db363487b1dc9e2091e5a46d61168b (patch) | |
tree | b7d2e90b6e9e5b3d71b5a8ae24284fcc9a1e900c | |
parent | a0ccd4e2e4a821cec62d042c0aee855c75d920c6 (diff) | |
download | network-manager-applet-3f5f9c2d38db363487b1dc9e2091e5a46d61168b.tar.gz |
libnm-gtk: use new providers database constant
https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/18
introduced a new constant providing more accurate path for Mobile Broadband
provider info database. We should use it in libnm-gtk as well.
This also prevents a cyclic dependency on NixOS.
https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/19
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | src/libnm-gtk/nm-mobile-providers.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/meson.build b/meson.build index 8059b6c1..cfaa50fe 100644 --- a/meson.build +++ b/meson.build @@ -137,7 +137,7 @@ if enable_mobile_broadband_provider_info mobile_broadband_provider_info_dep = dependency('mobile-broadband-provider-info') config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', mobile_broadband_provider_info_dep.get_pkgconfig_variable('database')) else - config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', join_paths(nma_prefix, 'share', 'mobile-broadband-provider-info', 'serviceproviders.xml')) + config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', join_paths(nma_datadir, 'mobile-broadband-provider-info', 'serviceproviders.xml')) endif gio_dep = dependency('gio-2.0', version: '>= 2.38') diff --git a/src/libnm-gtk/nm-mobile-providers.c b/src/libnm-gtk/nm-mobile-providers.c index 20611823..572e2956 100644 --- a/src/libnm-gtk/nm-mobile-providers.c +++ b/src/libnm-gtk/nm-mobile-providers.c @@ -30,10 +30,6 @@ #include "nm-mobile-providers.h" -#ifndef MOBILE_BROADBAND_PROVIDER_INFO -#define MOBILE_BROADBAND_PROVIDER_INFO DATADIR"/mobile-broadband-provider-info/serviceproviders.xml" -#endif - #define ISO_3166_COUNTRY_CODES ISO_CODES_PREFIX"/share/xml/iso-codes/iso_3166.xml" #define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX"/share/locale" @@ -990,7 +986,7 @@ mobile_providers_parse_sync (const gchar *country_codes, if (!country_codes) country_codes = ISO_3166_COUNTRY_CODES; if (!service_providers) - service_providers = MOBILE_BROADBAND_PROVIDER_INFO; + service_providers = MOBILE_BROADBAND_PROVIDER_INFO_DATABASE; countries = read_country_codes (country_codes, cancellable, |