NetworkManager/libnm-glib
Dan Williams 762df85234 libnm-glib: ensure bindings-created objects work as expected (rh #802536)
Bindings (like GObject Introspection) almost always create objects
using g_object_new() by default and don't use our helper functions
like nm_client_new().  Thus we need to make sure that if the
object is created in that way, any property accesses or functions
that return properties ensure that the object is fully initialized,
which is what the _new() functions were supposed to do.  In one
case in NMClient that was missing (getting active connections)
and wasn't happening at all in NMRemoteSettings, which are our two
entry points into libnm-glib.

This allows this python+GI sequence to return the expected active
connection list:

from gi.repository import NMClient
nmclient = NMClient.Client(dbus_path='/org/freedesktop/NetworkManager')
active = nmclient.get_active_connections()
print(active)

where previously it returned an empty list because the NMClient
wasn't fully initialized by the time nm_client_get_active_connections()
was called.
2012-03-21 12:37:39 -05:00
..
tests build: fix srcdir != builddir for new generated headers 2012-02-22 16:27:28 -06:00
libnm-glib-test.c wifi: make wireless-helper.h private to src/ 2011-11-09 21:28:02 -06:00
libnm-glib-vpn.pc.in release: bump version to 0.9.0 2011-08-22 20:33:07 -05:00
libnm-glib-vpn.ver libnm-glib-vpn: add some helpers for auth dialogs 2011-02-10 18:48:32 -06:00
libnm-glib.pc.in release: bump version to 0.9.0 2011-08-22 20:33:07 -05:00
libnm-glib.ver libnm-glib: add 'registered' property for NMSecretAgent 2012-03-19 13:24:28 -05:00
libnm_glib.c libnm-glib: rename some internal symbols in legacy compat library 2011-05-05 12:33:49 -05:00
libnm_glib.h libnm-glib: deprecate original libnm_glib bits 2010-03-10 09:18:08 -08:00
Makefile.am libnm-glib: add NMDeviceVlan 2012-03-07 11:45:25 -06:00
nm-access-point.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-access-point.h libnm-glib: add *_connection_valid() utility functions 2011-04-25 17:07:38 -05:00
nm-active-connection.c libnm-glib: fix some property-handling warnings 2012-02-20 11:48:31 -05:00
nm-active-connection.h bonding: export path of master device property over DBUS 2012-01-25 11:12:43 -06:00
nm-client.c libnm-glib: ensure bindings-created objects work as expected (rh #802536) 2012-03-21 12:37:39 -05:00
nm-client.h libnm-glib: nm_client_new_async, fix up NMClient asynchrony issues 2012-02-03 10:33:43 -06:00
nm-device-bond.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-bond.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-bt.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-bt.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-ethernet.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-ethernet.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-infiniband.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-infiniband.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-modem.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-modem.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-olpc-mesh.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-olpc-mesh.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-private.h libnm-glib: ensure nm_device_set_device_type() stays private 2012-03-12 14:33:51 -05:00
nm-device-vlan.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-vlan.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-wifi.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-wifi.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-wimax.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device-wimax.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device.c libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-device.h libnm-glib: add errors to device classes and nm_device_connection_compatible() 2012-03-16 09:54:36 +01:00
nm-dhcp4-config.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-dhcp4-config.h libnm-glib: add class padding for future expansion 2009-09-30 09:21:32 -07:00
nm-dhcp6-config.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-dhcp6-config.h libnm-glib: add NMDHCP6Config class 2010-01-15 12:40:19 -08:00
nm-ip4-config.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-ip4-config.h libnm-glib: remove deprecated nm_ip4_config_get_hostname() function 2011-03-10 11:48:22 -06:00
nm-ip6-config.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-ip6-config.h libnm-glib: add class padding for future expansion 2009-09-30 09:21:32 -07:00
nm-object-cache.c libnm-glib: prevent possible access of freed memory 2012-03-12 14:33:17 -05:00
nm-object-cache.h libnm-glib: prevent possible access of freed memory 2012-03-12 14:33:17 -05:00
nm-object-private.h libnm-glib: nm_client_new_async, fix up NMClient asynchrony issues 2012-02-03 10:33:43 -06:00
nm-object.c libnm-glib: two object uniqueness fixes 2012-03-13 14:31:26 -05:00
nm-object.h libnm-glib: add class padding for future expansion 2009-09-30 09:21:32 -07:00
nm-remote-connection-private.h libnm-glib: handle initially invisible connections correctly 2011-02-12 22:00:30 -06:00
nm-remote-connection.c libnm-glib: fix to not depend on newer glib 2012-02-06 17:29:49 -06:00
nm-remote-connection.h secrets: simplify GetSecrets call flow 2011-01-26 10:17:07 -06:00
nm-remote-settings.c libnm-glib: ensure bindings-created objects work as expected (rh #802536) 2012-03-21 12:37:39 -05:00
nm-remote-settings.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-secret-agent.c libnm-glib: add 'registered' property for NMSecretAgent 2012-03-19 13:24:28 -05:00
nm-secret-agent.h libnm-glib: add 'registered' property for NMSecretAgent 2012-03-19 13:24:28 -05:00
nm-types-private.h libnm-glib: add NMIP6Config object that proxies device's IP6 config 2009-08-20 11:30:52 -05:00
nm-types.c libnm-glib: pre-emptively avoid some -Wshadow errors 2012-02-02 12:30:35 -06:00
nm-types.h Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-vpn-connection.c Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-vpn-connection.h libnm-glib: documentation fixes 2011-03-10 12:35:43 -06:00
nm-vpn-plugin-ui-interface.c libnm-glib: VPN delete and save secrets operations are no longer used 2011-07-13 13:00:16 -05:00
nm-vpn-plugin-ui-interface.h libnm-glib: VPN delete and save secrets operations are no longer used 2011-07-13 13:00:16 -05:00
nm-vpn-plugin-utils.c libnm-glib-vpn: add some helpers for auth dialogs 2011-02-10 18:48:32 -06:00
nm-vpn-plugin-utils.h libnm-glib-vpn: add some helpers for auth dialogs 2011-02-10 18:48:32 -06:00
nm-vpn-plugin.c Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-vpn-plugin.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-wimax-nsp.c libnm-glib: implement GInitable/GAsyncInitable in NMObject 2012-02-03 10:33:43 -06:00
nm-wimax-nsp.h libnm-glib: add *_connection_valid() utility functions 2011-04-25 17:07:38 -05:00