summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-09-11 16:12:40 -0400
committerDan Winship <danw@gnome.org>2014-09-25 09:29:20 -0400
commita5082f011255d164bce86035bdfed3a0153a444e (patch)
tree306a2322df2b18dbc5876065cd2f2eea8680bf60 /examples
parent0f1e11c4703e92b019ec25ebd9cc57b815f76776 (diff)
libnm: merge saved and unsaved connection methods
Merge nm_remote_settings_add_connection() and nm_remote_settings_add_connection_unsaved(), and likewise nm_remote_connection_commit_changes() and nm_remote_connection_commit_changes_unsaved(), by adding a boolean flag to each saying whether to save to disk.
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/add-connection-libnm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c
index 2b0143d35..59632955b 100644
--- a/examples/C/glib/add-connection-libnm.c
+++ b/examples/C/glib/add-connection-libnm.c
@@ -89,7 +89,7 @@ add_connection (NMRemoteSettings *settings, GMainLoop *loop, const char *con_nam
/* Ask the settings service to add the new connection; we'll quit the
* mainloop and exit when the callback is called.
*/
- success = nm_remote_settings_add_connection (settings, connection, added_cb, loop);
+ success = nm_remote_settings_add_connection (settings, connection, TRUE, added_cb, loop);
if (!success)
g_print ("Error adding connection\n");