network-manager-applet r462 - in trunk: . src



Author: dcbw
Date: Sat Jan 19 17:22:53 2008
New Revision: 462
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=462&view=rev

Log:
2008-01-19  Dan Williams  <dcbw redhat com>

	* src/applet-dbus-settings.c
	  src/applet-dbus-settings.h
		- (applet_dbus_settings_system_get_by_dbus_path): new function



Modified:
   trunk/ChangeLog
   trunk/src/applet-dbus-settings.c
   trunk/src/applet-dbus-settings.h

Modified: trunk/src/applet-dbus-settings.c
==============================================================================
--- trunk/src/applet-dbus-settings.c	(original)
+++ trunk/src/applet-dbus-settings.c	Sat Jan 19 17:22:53 2008
@@ -571,6 +571,16 @@
 	return info.path;
 }
 
+NMConnection *
+applet_dbus_settings_system_get_by_dbus_path (AppletDbusSettings *settings,
+                                              const char *path)
+{
+	g_return_val_if_fail (APPLET_IS_DBUS_SETTINGS (settings), NULL);
+	g_return_val_if_fail (path != NULL, NULL);
+
+	return g_hash_table_lookup (settings->system_connections, path);
+}
+
 AppletDbusConnectionSettings *
 applet_dbus_settings_user_get_by_connection (AppletDbusSettings *applet_settings,
                                              NMConnection *connection)

Modified: trunk/src/applet-dbus-settings.h
==============================================================================
--- trunk/src/applet-dbus-settings.h	(original)
+++ trunk/src/applet-dbus-settings.h	Sat Jan 19 17:22:53 2008
@@ -104,6 +104,9 @@
 const char * applet_dbus_settings_system_get_dbus_path (AppletDbusSettings *settings,
                                                         NMConnection *connection);
 
+NMConnection * applet_dbus_settings_system_get_by_dbus_path (AppletDbusSettings *settings,
+                                                             const char *path);
+
 /* Returns a list of NMConnectionSettings objects */
 GSList * applet_dbus_settings_list_connections (AppletDbusSettings *settings);
 



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