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:
@@ -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>
|
2008-05-28 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
Revert r3697 (adhoc-create property patch); it's the wrong way to do this.
|
Revert r3697 (adhoc-create property patch); it's the wrong way to do this.
|
||||||
|
@@ -38,14 +38,16 @@ file_changed (GFileMonitor *monitor,
|
|||||||
new_connection = parse_ifcfg (priv->iface, priv->dev_type);
|
new_connection = parse_ifcfg (priv->iface, priv->dev_type);
|
||||||
if (new_connection) {
|
if (new_connection) {
|
||||||
new_settings = nm_connection_to_hash (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_hash_table_destroy (new_settings);
|
||||||
g_object_unref (new_connection);
|
g_object_unref (new_connection);
|
||||||
} else
|
} else
|
||||||
nm_exported_connection_delete (exported, NULL);
|
nm_exported_connection_signal_removed (exported);
|
||||||
break;
|
break;
|
||||||
case G_FILE_MONITOR_EVENT_DELETED:
|
case G_FILE_MONITOR_EVENT_DELETED:
|
||||||
nm_exported_connection_delete (exported, NULL);
|
nm_exported_connection_signal_removed (exported);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user