[network-manager-netbook/MplPanelClient] Fix connection deletion.
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook/MplPanelClient] Fix connection deletion.
- Date: Fri, 13 Nov 2009 09:25:00 +0000 (UTC)
commit c2efeb4644157473c014bcf7ca0b91bc3ae72ef8
Author: Tambet Ingo <tambet gmail com>
Date: Thu Nov 12 11:30:56 2009 +0200
Fix connection deletion.
src/nmn-network-item.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/nmn-network-item.c b/src/nmn-network-item.c
index 3f121d5..6ba8ea0 100644
--- a/src/nmn-network-item.c
+++ b/src/nmn-network-item.c
@@ -589,12 +589,23 @@ nmn_network_item_set_connection (NmnNetworkItem *self,
}
static void
+delete_cb (NMSettingsConnectionInterface *connection,
+ GError *error,
+ gpointer user_data)
+{
+ if (error)
+ g_warning ("Error deleting connection: (%d) %s", error->code, error->message);
+ if (user_data)
+ g_object_set_data (G_OBJECT (user_data), "conn", NULL);
+}
+
+static void
item_delete (NmnNetworkItem *item)
{
NMSettingsConnectionInterface *connection = nmn_network_item_get_connection (item);
if (connection)
- nm_settings_connection_interface_delete (connection, NULL, NULL);
+ nm_settings_connection_interface_delete (connection, delete_cb, NULL);
}
static guint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]