[PATCH] For deleting vpn connection completely
- From: Vinay <rvinay novell com>
- To: networkmanager-list gnome org
- Subject: [PATCH] For deleting vpn connection completely
- Date: Thu, 16 Feb 2006 06:01:51 +0530
Hi,
when a vpn-connection is deleted, vpn-connection-manager deletes all the
attributes except 'last_attempt_success' in gconf (which gets added when
an attempt is made to connect to the vpn through that vpn-connection).
Attached is the patch which makes the delete operation complete.
Appreciate any comments on this.
Regards,
Vinay
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/NetworkManager/ChangeLog,v
retrieving revision 1.826
diff -u -r1.826 ChangeLog
--- ChangeLog 15 Feb 2006 21:46:41 -0000 1.826
+++ ChangeLog 16 Feb 2006 03:23:12 -0000
@@ -1,3 +1,10 @@
+2006-02-16 Vinay A R <rvinay novell com>
+
+ * gnome/vpn-properties/nm-vpn-properties.c
+ (delete_cb) : Added another gconf_client_unset statement
+ for 'last_attempt_success', since the vpn connection was not
+ deleted completely in gconf leaving 'last_attempt_success' attribute.
+
2006-02-15 Robert Love <rml novell com>
* src/nm-device-802-11-wireless.c: Use LOCALSTATEDIR preprocessor
Index: gnome/vpn-properties/nm-vpn-properties.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/gnome/vpn-properties/nm-vpn-properties.c,v
retrieving revision 1.12
diff -u -r1.12 nm-vpn-properties.c
--- gnome/vpn-properties/nm-vpn-properties.c 15 Feb 2006 16:34:21 -0000 1.12
+++ gnome/vpn-properties/nm-vpn-properties.c 16 Feb 2006 03:23:12 -0000
@@ -736,6 +736,8 @@
/* TODO: remove user_name */
g_snprintf (key, sizeof (key), "%s/user_name", conn_gconf_path);
gconf_client_unset (gconf_client, key, NULL);
+ g_snprintf (key, sizeof (key), "%s/last_attempt_success", conn_gconf_path);
+ gconf_client_unset (gconf_client, key, NULL);
gconf_client_unset (gconf_client, conn_gconf_path, NULL);
gconf_client_suggest_sync (gconf_client, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]