From 9c57a21a2cffaeea3b1bb84eb1e2a6388532c8b6 Mon Sep 17 00:00:00 2001 From: Tambet Ingo Date: Wed, 4 Oct 2006 12:56:28 +0000 Subject: [PATCH] 2006-10-04 Tambet Ingo * properties/nm-openvpn.c (impl_get_widget, impl_get_properties) (import_from_file): s/tcp/tcp-client. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2049 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- vpn-daemons/openvpn/ChangeLog | 5 +++++ vpn-daemons/openvpn/properties/nm-openvpn.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vpn-daemons/openvpn/ChangeLog b/vpn-daemons/openvpn/ChangeLog index 7d58cb1921..b9a8a56609 100644 --- a/vpn-daemons/openvpn/ChangeLog +++ b/vpn-daemons/openvpn/ChangeLog @@ -1,3 +1,8 @@ +2006-10-04 Tambet Ingo + + * properties/nm-openvpn.c (impl_get_widget, impl_get_properties) + (import_from_file): s/tcp/tcp-client. + 2006-07-28 Christophe Merlet * properties/nm-openvpn-dialog.glade.h: fixed typo. diff --git a/vpn-daemons/openvpn/properties/nm-openvpn.c b/vpn-daemons/openvpn/properties/nm-openvpn.c index a9cb3a2aaa..17ee3dba52 100644 --- a/vpn-daemons/openvpn/properties/nm-openvpn.c +++ b/vpn-daemons/openvpn/properties/nm-openvpn.c @@ -225,7 +225,7 @@ impl_get_widget (NetworkManagerVpnUI *self, GSList *properties, GSList *routes, gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (impl->w_use_tap), TRUE); should_expand = TRUE; } else if ( (strcmp (key, "proto") == 0) && - (strcmp (value, "tcp") == 0) ) { + (strcmp (value, "tcp-client") == 0) ) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (impl->w_use_tcp), TRUE); should_expand = TRUE; } else if (strcmp (key, "cipher") == 0) { @@ -328,7 +328,7 @@ impl_get_properties (NetworkManagerVpnUI *self) data = g_slist_append (data, g_strdup ("remote")); data = g_slist_append (data, g_strdup (remote)); data = g_slist_append (data, g_strdup ("proto")); - data = g_slist_append (data, use_tcp ? g_strdup ("tcp") : g_strdup("udp")); + data = g_slist_append (data, use_tcp ? g_strdup ("tcp-client") : g_strdup("udp")); data = g_slist_append (data, g_strdup ("ca")); data = g_slist_append (data, g_strdup (ca)); data = g_slist_append (data, g_strdup ("cert")); @@ -980,7 +980,7 @@ import_from_file (NetworkManagerVpnUIImpl *impl, const char *path) should_expand = TRUE; } - if ( strcmp (proto, "tcp") == 0 ) { + if ( strcmp (proto, "tcp-client") == 0 ) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (impl->w_use_tcp), TRUE); should_expand = TRUE; }