From 3021f3e808399bb23bcdf55a1a122fc0001723a3 Mon Sep 17 00:00:00 2001 From: Antony Mee Date: Thu, 3 Aug 2006 12:29:53 +0000 Subject: [PATCH] * Added "Custom PPP options" text entry git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1913 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- .../pptp/properties/nm-ppp-dialog.glade | 57 ++++++++++++++++++- .../pptp/properties/nm-ppp-properties.c | 8 ++- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/vpn-daemons/pptp/properties/nm-ppp-dialog.glade b/vpn-daemons/pptp/properties/nm-ppp-dialog.glade index b74ba039e2..26b82a39b8 100644 --- a/vpn-daemons/pptp/properties/nm-ppp-dialog.glade +++ b/vpn-daemons/pptp/properties/nm-ppp-dialog.glade @@ -1091,7 +1091,7 @@ True True - True + False 4 @@ -1706,6 +1706,61 @@ + + + True + False + 12 + + + + True + _Custom PPP options: + True + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + pptp-remote + + + 0 + False + False + + + + + + True + Host name or IP address of the PPTP server + True + True + True + 0 + + True + * + False + + + 0 + True + True + + + + + 0 + False + False + + + True diff --git a/vpn-daemons/pptp/properties/nm-ppp-properties.c b/vpn-daemons/pptp/properties/nm-ppp-properties.c index f926ba19c8..e3a3175e39 100644 --- a/vpn-daemons/pptp/properties/nm-ppp-properties.c +++ b/vpn-daemons/pptp/properties/nm-ppp-properties.c @@ -60,7 +60,8 @@ "lcp-echo-interval=10;" \ "use-routes=no;" \ "routes=;" \ - "ppp-debug=no;" + "ppp-debug=no;" \ + "ppp-extra='';" #define VPNUI_BTOOTH_DEFAULTS "bt-bdaddr=00:00:00:00:00:00;" \ "bt-channel=1;" #define VPNUI_GPRS_DEFAULTS "gprs-packet-type=IP;" \ @@ -233,6 +234,11 @@ impl_setup (NetworkManagerVpnUIImpl *impl) "ppp-connect-delay", "PPP-Connect-Delay", _("Interval (in milliseconds) to wait before connecting."), NULL, NULL, impl ); + opt = vpnui_opt_new( + "ppp-extra", VPN_UI_OPTTYPE_STRING, + "ppp-extra", "PPP-Custom-Options", _("Custom PPP options"), + GTK_SIGNAL_FUNC(&editable_changed), NULL, impl ); + opt = vpnui_opt_new( "ppp-debug" , VPN_UI_OPTTYPE_YESNO , "ppp-debug", NULL, NULL,