2008-05-29 Tambet Ingo <tambet@gmail.com>

* 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
This commit is contained in:
Tambet Ingo 2008-05-29 07:57:52 +00:00
parent fe065be722
commit 89aaffef8c
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-05-29 Tambet Ingo <tambet@gmail.com>
* 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 <dcbw@redhat.com>
Revert r3697 (adhoc-create property patch); it's the wrong way to do this.

View file

@ -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;