NetworkManager r3700 - in trunk: . system-settings/plugins/ifcfg-suse



Author: tambeti
Date: Thu May 29 07:57:52 2008
New Revision: 3700
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3700&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c

Modified: trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c
==============================================================================
--- trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c	(original)
+++ trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c	Thu May 29 07:57:52 2008
@@ -38,14 +38,16 @@
 		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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]