mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 22:20:08 +01:00
2007-12-01 Dan Williams <dcbw@redhat.com>
* system-settings/src/main.c - (load_connections, add_connection_to_settings): actually export plugin-provided connections over D-Bus so NM can get them git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3120 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
98df3d3558
commit
bb8bde197e
2 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-12-01 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* system-settings/src/main.c
|
||||
- (load_connections, add_connection_to_settings): actually export
|
||||
plugin-provided connections over D-Bus so NM can get them
|
||||
|
||||
2007-12-01 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* system-settings/plugins/ifcfg/parser.c
|
||||
|
|
|
|||
|
|
@ -219,6 +219,12 @@ free_plugin_connections (gpointer data)
|
|||
g_slist_foreach (connections, (GFunc) g_object_unref, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
add_connection_to_settings (gpointer data, gpointer user_data)
|
||||
{
|
||||
connection_added_cb (NULL, NM_CONNECTION (data), (Application *) user_data);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
load_connections (gpointer user_data)
|
||||
{
|
||||
|
|
@ -238,6 +244,7 @@ load_connections (gpointer user_data)
|
|||
// priority plugin.
|
||||
|
||||
g_slist_foreach (connections, (GFunc) g_object_ref, NULL);
|
||||
g_slist_foreach (connections, (GFunc) add_connection_to_settings, app);
|
||||
g_object_set_data_full (G_OBJECT (plugin), "connections",
|
||||
connections, free_plugin_connections);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue