summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-active-connection.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-01-05 13:34:58 -0500
committerDan Williams <dcbw@redhat.com>2012-02-02 12:30:32 -0600
commitf32032694faacc300f2a700599e6b152cbfb1efe (patch)
treec20dab507bdaf8934bf5937971d199c08cd70f14 /libnm-glib/nm-active-connection.c
parente74d729f1721552003093b04b3adbbec0ba7da08 (diff)
downloadNetworkManager-f32032694faacc300f2a700599e6b152cbfb1efe.tar.gz
libnm-glib: implement NMActiveConnection uuid property
This property existed as a #define and a get method, but the actual GObject property itself was accidentally never implemented.
Diffstat (limited to 'libnm-glib/nm-active-connection.c')
-rw-r--r--libnm-glib/nm-active-connection.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libnm-glib/nm-active-connection.c b/libnm-glib/nm-active-connection.c
index ddde4cc6c2..55c50c970f 100644
--- a/libnm-glib/nm-active-connection.c
+++ b/libnm-glib/nm-active-connection.c
@@ -371,6 +371,9 @@ get_property (GObject *object,
case PROP_CONNECTION:
g_value_set_string (value, nm_active_connection_get_connection (self));
break;
+ case PROP_UUID:
+ g_value_set_string (value, nm_active_connection_get_uuid (self));
+ break;
case PROP_SPECIFIC_OBJECT:
g_value_set_boxed (value, nm_active_connection_get_specific_object (self));
break;
@@ -483,6 +486,19 @@ nm_active_connection_class_init (NMActiveConnectionClass *ap_class)
G_PARAM_READABLE));
/**
+ * NMActiveConnection:uuid:
+ *
+ * The active connection's UUID
+ **/
+ g_object_class_install_property
+ (object_class, PROP_UUID,
+ g_param_spec_string (NM_ACTIVE_CONNECTION_UUID,
+ "UUID",
+ "UUID",
+ NULL,
+ G_PARAM_READABLE));
+
+ /**
* NMActiveConnection:specific-object:
*
* The specific object's path of the active connection.