mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 09:20:32 +01:00
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.
This commit is contained in:
parent
e74d729f17
commit
f32032694f
1 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -482,6 +485,19 @@ nm_active_connection_class_init (NMActiveConnectionClass *ap_class)
|
|||
NULL,
|
||||
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:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue