diff options
author | Dan Winship <danw@redhat.com> | 2014-11-25 17:28:51 -0500 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2015-03-25 12:51:36 -0400 |
commit | c53b571dbaae1644d0e5f585046694aadd868d13 (patch) | |
tree | a0a96dd658f37bba0b4c87dfeea0dcd1538f5802 /properties | |
parent | 7c2984da8cae06e0875209666c3ed77cbd00f5b0 (diff) |
all: use nm_connection_get_setting_*()
The code was still using nm_connection_get_setting(). Use the typesafe
setting-specific versions instead.
Diffstat (limited to 'properties')
-rw-r--r-- | properties/nm-iodine.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/properties/nm-iodine.c b/properties/nm-iodine.c index 41ed7af..2806e90 100644 --- a/properties/nm-iodine.c +++ b/properties/nm-iodine.c @@ -153,7 +153,6 @@ export (NMVpnPluginUiInterface *iface, NMConnection *connection, GError **error) { - NMSettingConnection *s_con; NMSettingVPN *s_vpn; const char *value; const char *topdomain = NULL; @@ -168,11 +167,7 @@ export (NMVpnPluginUiInterface *iface, return FALSE; } - s_con = NM_SETTING_CONNECTION (nm_connection_get_setting - (connection, NM_TYPE_SETTING_CONNECTION)); - - s_vpn = (NMSettingVPN *) nm_connection_get_setting (connection, - NM_TYPE_SETTING_VPN); + s_vpn = nm_connection_get_setting_vpn (connection); value = nm_setting_vpn_get_data_item (s_vpn, NM_IODINE_KEY_TOPDOMAIN); if (value && strlen (value)) @@ -197,7 +192,7 @@ export (NMVpnPluginUiInterface *iface, "Topdomain=%s\n" "Nameserver=%s\n" "Fragsize=%s\n", - /* Description */ nm_setting_connection_get_id (s_con), + /* Description */ nm_connection_get_id (connection), /* Topdomain */ topdomain, /* Nameserver */ nameserver, /* Fragsize */ fragsize); @@ -425,8 +420,7 @@ init_plugin_ui (IodinePluginUiWidget *self, GtkWidget *widget; const char *value; - s_vpn = (NMSettingVPN *) nm_connection_get_setting (connection, - NM_TYPE_SETTING_VPN); + s_vpn = nm_connection_get_setting_vpn (connection); priv->group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); |