From 89aaffef8cad58038e907f93c7ed2f78ca9d65e1 Mon Sep 17 00:00:00 2001 From: Tambet Ingo Date: Thu, 29 May 2008 07:57:52 +0000 Subject: [PATCH] 2008-05-29 Tambet Ingo * system-settings/plugins/ifcfg-suse/nm-suse-connection.c (file_changed): Fix a bug where suse system settings plugin didn't update the connections automatically when the files changed. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3700 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ system-settings/plugins/ifcfg-suse/nm-suse-connection.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc55a0d5c..c5a644c3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-29 Tambet Ingo + + * system-settings/plugins/ifcfg-suse/nm-suse-connection.c + (file_changed): Fix a bug where suse system settings plugin didn't + update the connections automatically when the files changed. + 2008-05-28 Dan Williams Revert r3697 (adhoc-create property patch); it's the wrong way to do this. diff --git a/system-settings/plugins/ifcfg-suse/nm-suse-connection.c b/system-settings/plugins/ifcfg-suse/nm-suse-connection.c index b65a485be..0929ac751 100644 --- a/system-settings/plugins/ifcfg-suse/nm-suse-connection.c +++ b/system-settings/plugins/ifcfg-suse/nm-suse-connection.c @@ -38,14 +38,16 @@ file_changed (GFileMonitor *monitor, new_connection = parse_ifcfg (priv->iface, priv->dev_type); if (new_connection) { new_settings = nm_connection_to_hash (new_connection); - nm_exported_connection_update (exported, new_settings, NULL); + nm_connection_replace_settings (nm_exported_connection_get_connection (exported), new_settings); + nm_exported_connection_signal_updated (exported, new_settings); + g_hash_table_destroy (new_settings); g_object_unref (new_connection); } else - nm_exported_connection_delete (exported, NULL); + nm_exported_connection_signal_removed (exported); break; case G_FILE_MONITOR_EVENT_DELETED: - nm_exported_connection_delete (exported, NULL); + nm_exported_connection_signal_removed (exported); break; default: break;