libnm-glib: remove redundant Scope and Path properties on NMSettingsConnectionInterface
Since NMSettingsConnectionInterface already has NM_TYPE_CONNECTION as a prerequisite, which already implements these properties, it's pointless to have them on NMSettingsConnectionInterface too.
This commit is contained in:
@@ -141,25 +141,6 @@ nm_settings_connection_interface_init (gpointer g_iface)
|
||||
if (initialized)
|
||||
return;
|
||||
|
||||
/* Properties */
|
||||
g_object_interface_install_property
|
||||
(g_iface,
|
||||
g_param_spec_string (NM_SETTINGS_CONNECTION_INTERFACE_PATH,
|
||||
"Path",
|
||||
"D-Bus path",
|
||||
NULL,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_interface_install_property
|
||||
(g_iface,
|
||||
g_param_spec_uint (NM_SETTINGS_CONNECTION_INTERFACE_SCOPE,
|
||||
"Scope",
|
||||
"Connection scope (user, system)",
|
||||
NM_CONNECTION_SCOPE_UNKNOWN,
|
||||
NM_CONNECTION_SCOPE_USER,
|
||||
NM_CONNECTION_SCOPE_USER,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
/* Signals */
|
||||
g_signal_new ("updated",
|
||||
iface_type,
|
||||
|
@@ -36,16 +36,6 @@ G_BEGIN_DECLS
|
||||
#define NM_IS_SETTINGS_CONNECTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTINGS_CONNECTION_INTERFACE))
|
||||
#define NM_SETTINGS_CONNECTION_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NM_TYPE_SETTINGS_CONNECTION_INTERFACE, NMSettingsConnectionInterface))
|
||||
|
||||
#define NM_SETTINGS_CONNECTION_INTERFACE_PATH "path"
|
||||
#define NM_SETTINGS_CONNECTION_INTERFACE_SCOPE "scope"
|
||||
|
||||
typedef enum {
|
||||
NM_SETTINGS_CONNECTION_INTERFACE_PROP_FIRST = 0x1000,
|
||||
|
||||
NM_SETTINGS_CONNECTION_INTERFACE_PROP_PATH = NM_SETTINGS_CONNECTION_INTERFACE_PROP_FIRST,
|
||||
NM_SETTINGS_CONNECTION_INTERFACE_PROP_SCOPE
|
||||
} NMSettingsConnectionInterfaceProp;
|
||||
|
||||
|
||||
typedef struct _NMSettingsConnectionInterface NMSettingsConnectionInterface;
|
||||
|
||||
|
Reference in New Issue
Block a user