network-manager-openvpn r56 - in branches/NETWORKMANAGER_0_7: . properties
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-openvpn r56 - in branches/NETWORKMANAGER_0_7: . properties
- Date: Wed, 18 Mar 2009 15:04:10 +0000 (UTC)
Author: dcbw
Date: Wed Mar 18 15:04:09 2009
New Revision: 56
URL: http://svn.gnome.org/viewvc/network-manager-openvpn?rev=56&view=rev
Log:
2009-03-18 Dan Williams <dcbw redhat com>
* properties/auth-helpers.c
- (auth_widget_update_connection): actually save local IP address
for static key connections
Modified:
branches/NETWORKMANAGER_0_7/ChangeLog
branches/NETWORKMANAGER_0_7/properties/auth-helpers.c
Modified: branches/NETWORKMANAGER_0_7/properties/auth-helpers.c
==============================================================================
--- branches/NETWORKMANAGER_0_7/properties/auth-helpers.c (original)
+++ branches/NETWORKMANAGER_0_7/properties/auth-helpers.c Wed Mar 18 15:04:09 2009
@@ -487,6 +487,7 @@
GtkTreeModel *model;
GtkTreeIter iter;
GtkWidget *widget;
+ const char *str;
if (!strcmp (contype, NM_OPENVPN_CONTYPE_TLS)) {
update_tls (xml, "tls", s_vpn);
@@ -497,7 +498,10 @@
update_tls (xml, "pw_tls", s_vpn);
update_username (xml, "pw_tls", s_vpn);
} else if (!strcmp (contype, NM_OPENVPN_CONTYPE_STATIC_KEY)) {
+ /* Update static key */
update_from_filechooser (xml, NM_OPENVPN_KEY_STATIC_KEY, "sk", "key_chooser", s_vpn);
+
+ /* Update direction */
widget = glade_xml_get_widget (xml, "sk_direction_combo");
g_assert (widget);
model = gtk_combo_box_get_model (GTK_COMBO_BOX (widget));
@@ -511,6 +515,13 @@
g_free (tmp);
}
}
+
+ /* Update local address */
+ widget = glade_xml_get_widget (xml, "sk_local_address_entry");
+ g_assert (widget);
+ str = gtk_entry_get_text (GTK_ENTRY (widget));
+ if (str && strlen (str))
+ nm_setting_vpn_add_data_item (s_vpn, NM_OPENVPN_KEY_LOCAL_IP, str);
} else
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]