[network-manager-applet/lr/import: 6/6] fixup! editor: add connection argument to the new page function
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/lr/import: 6/6] fixup! editor: add connection argument to the new page function
- Date: Thu, 10 Nov 2016 18:06:09 +0000 (UTC)
commit 66e1a4bb82cf6af7128e6503f332fb266b273561
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Thu Nov 10 19:04:52 2016 +0100
fixup! editor: add connection argument to the new page function
src/connection-editor/main.c | 2 ++
src/connection-editor/nm-connection-list.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/main.c b/src/connection-editor/main.c
index 60b2236..752472a 100644
--- a/src/connection-editor/main.c
+++ b/src/connection-editor/main.c
@@ -58,6 +58,8 @@ idle_create_connection (gpointer user_data)
NMConnection *connection = g_object_get_data (G_OBJECT (list), "nm-connection-editor-connection");
nm_connection_list_create (list, ctype, detail, connection);
+
+ nm_g_object_unref (connection);
return FALSE;
}
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 25c9d03..dfe6f28 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -927,7 +927,7 @@ nm_connection_list_create (NMConnectionList *self, GType ctype, const char *deta
new_connection_of_type (GTK_WINDOW (self->dialog),
detail,
NULL,
- connection,
+ g_object_ref (connection),
self->client,
types[i].new_connection_func,
really_add_connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]