From 429393567647935d9123e21fd27a7529d50255eb Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sun, 1 Jul 2018 20:58:23 +0200 Subject: New upstream version 1.12.0 --- libnm/meson.build | 26 ++++++++++++++++++++++---- libnm/nm-device.c | 6 +++--- libnm/nm-property-docs.xml | 4 ++-- libnm/nm-remote-connection.c | 11 ++++++++++- libnm/nm-settings-docs.xml | 4 ++-- 5 files changed, 39 insertions(+), 12 deletions(-) (limited to 'libnm') diff --git a/libnm/meson.build b/libnm/meson.build index 91fe972e..76c77d0c 100644 --- a/libnm/meson.build +++ b/libnm/meson.build @@ -235,13 +235,31 @@ if enable_introspection generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py') + gi_typelib_path = run_command('printenv', 'GI_TYPELIB_PATH').stdout() + if gi_typelib_path != '' + gi_typelib_path = ':' + gi_typelib_path + endif + gi_typelib_path = meson.current_build_dir() + gi_typelib_path + + ld_library_path = run_command('printenv', 'LD_LIBRARY_PATH').stdout() + if ld_library_path != '' + ld_library_path = ':' + ld_library_path + endif + ld_library_path = meson.current_build_dir() + ld_library_path + + generate_setting_docs_env = [ + 'env', '-i', + 'GI_TYPELIB_PATH=' + gi_typelib_path, + 'LD_LIBRARY_PATH=' + ld_library_path + ] + name = 'nm-property-docs.xml' nm_property_docs = custom_target( name, input: libnm_gir[0], output: name, - command: [generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], - depends: libnm + command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], + depends: libnm_gir ) name = 'nm-settings-docs.xml' @@ -249,8 +267,8 @@ if enable_introspection name, input: libnm_gir[0], output: name, - command: [generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--overrides', nm_settings_docs_overrides, '--output', '@OUTPUT@'], - depends: libnm + command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--overrides', nm_settings_docs_overrides, '--output', '@OUTPUT@'], + depends: libnm_gir ) endif diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 57f0bedd..0ae3da53 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -1308,11 +1308,11 @@ get_type_name (NMDevice *device) case NM_DEVICE_TYPE_OLPC_MESH: return _("OLPC Mesh"); case NM_DEVICE_TYPE_OVS_INTERFACE: - return _("OpenVSwitch Interface"); + return _("Open vSwitch Interface"); case NM_DEVICE_TYPE_OVS_PORT: - return _("OpenVSwitch Port"); + return _("Open vSwitch Port"); case NM_DEVICE_TYPE_OVS_BRIDGE: - return _("OpenVSwitch Bridge"); + return _("Open vSwitch Bridge"); case NM_DEVICE_TYPE_WIMAX: return _("WiMAX"); case NM_DEVICE_TYPE_MODEM: diff --git a/libnm/nm-property-docs.xml b/libnm/nm-property-docs.xml index a857f633..98afd542 100644 --- a/libnm/nm-property-docs.xml +++ b/libnm/nm-property-docs.xml @@ -263,13 +263,13 @@ - + - + diff --git a/libnm/nm-remote-connection.c b/libnm/nm-remote-connection.c index 45b804f1..6c1e0924 100644 --- a/libnm/nm-remote-connection.c +++ b/libnm/nm-remote-connection.c @@ -35,6 +35,14 @@ #include "introspection/org.freedesktop.NetworkManager.Settings.Connection.h" +/** + * SECTION:nm-remote-connection + * @short_description: A connection managed by NetworkManager server + * + * A #NMRemoteConnection represents a connection that is exported via + * NetworkManager D-Bus interface. + **/ + static void nm_remote_connection_connection_iface_init (NMConnectionInterface *iface); static void nm_remote_connection_initable_iface_init (GInitableIface *iface); static void nm_remote_connection_async_initable_iface_init (GAsyncInitableIface *iface); @@ -62,7 +70,7 @@ typedef struct { gboolean unsaved; guint32 flags; - const char *filename; + char *filename; gboolean visible; } NMRemoteConnectionPrivate; @@ -939,6 +947,7 @@ dispose (GObject *object) NMRemoteConnectionPrivate *priv = NM_REMOTE_CONNECTION_GET_PRIVATE (object); g_clear_object (&priv->proxy); + nm_clear_g_free (&priv->filename); G_OBJECT_CLASS (nm_remote_connection_parent_class)->dispose (object); } diff --git a/libnm/nm-settings-docs.xml b/libnm/nm-settings-docs.xml index f5d7b688..8deac083 100644 --- a/libnm/nm-settings-docs.xml +++ b/libnm/nm-settings-docs.xml @@ -269,13 +269,13 @@ - + - + -- cgit 1.3.0-6-gf8a5