core: add a 'type-desc' property to NMDeviceInterface and use it

instead of littering the code with NM_IS_*.
This commit is contained in:
Dan Williams
2009-07-07 14:24:12 -04:00
parent d2e88e27b7
commit 3cdb0f6c7a
10 changed files with 50 additions and 22 deletions

View File

@@ -146,6 +146,14 @@ nm_device_interface_init (gpointer g_iface)
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_interface_install_property
(g_iface,
g_param_spec_string (NM_DEVICE_INTERFACE_TYPE_DESC,
"Type Description",
"Device type description",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
/* Signals */
g_signal_new ("state-changed",
iface_type,