mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 15:58:29 +02:00
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:
parent
4fb162e754
commit
cff9205ebd
2 changed files with 0 additions and 29 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue