static void
nmt_password_fields_get_property (GObject    *object,
                                  guint       prop_id,
                                  GValue     *value,
                                  GParamSpec *pspec)
{
	NmtPasswordFields *entry = NMT_PASSWORD_FIELDS (object);
	NmtPasswordFieldsPrivate *priv = NMT_PASSWORD_FIELDS_GET_PRIVATE (entry);

	switch (prop_id) {
	case PROP_WIDTH:
		g_value_set_int (value, nmt_newt_entry_get_width (priv->entry));
		break;
	case PROP_EXTRAS:
		g_value_set_uint (value, priv->extras);
		break;
	case PROP_PASSWORD:
		g_value_set_string (value, nmt_password_fields_get_password (entry));
		break;
	case PROP_ALWAYS_ASK:
		if (priv->always_ask)
			g_value_set_boolean (value, nmt_newt_checkbox_get_active (priv->always_ask));
		break;
	case PROP_SHOW_PASSWORD:
		if (priv->show_password)
			g_value_set_boolean (value, nmt_newt_checkbox_get_active (priv->show_password));
		break;
	default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
		break;
	}
}
static void
nmt_device_entry_get_property (GObject    *object,
                               guint       prop_id,
                               GValue     *value,
                               GParamSpec *pspec)
{
    NmtDeviceEntryPrivate *priv = NMT_DEVICE_ENTRY_GET_PRIVATE (object);

    switch (prop_id) {
    case PROP_LABEL:
        g_value_set_string (value, priv->label);
        break;
    case PROP_WIDTH:
        g_value_set_int (value, nmt_newt_entry_get_width (priv->entry));
        break;
    case PROP_HARDWARE_TYPE:
        g_value_set_gtype (value, priv->hardware_type);
        break;
    case PROP_INTERFACE_NAME:
        g_value_set_string (value, priv->interface_name);
        break;
    case PROP_MAC_ADDRESS:
        g_value_set_string (value, priv->mac_address);
        break;
    default:
        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
        break;
    }
}