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



Author: dcbw
Date: Wed Mar 12 16:14:44 2008
New Revision: 590
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=590&view=rev

Log:
2008-03-12  Dan Williams  <dcbw redhat com>

	* src/applet-dialogs.c
		- (info_dialog_update): strdup returned hardware address to match
			changes in libnm-glib API

	* src/applet-device-wired.c
		- (wired_add_menu_item): carrier detect is a property of the
			wired object now, not the generic device object



Modified:
   trunk/ChangeLog
   trunk/src/applet-device-wired.c
   trunk/src/applet-dialogs.c

Modified: trunk/src/applet-device-wired.c
==============================================================================
--- trunk/src/applet-device-wired.c	(original)
+++ trunk/src/applet-device-wired.c	Wed Mar 12 16:14:44 2008
@@ -179,7 +179,7 @@
 	 * we know it doesn't have a link.
 	 */
  	if (nm_device_get_capabilities (device) & NM_DEVICE_CAP_CARRIER_DETECT) {
-		carrier = nm_device_get_carrier (device);
+		carrier = nm_device_802_3_ethernet_get_carrier (NM_DEVICE_802_3_ETHERNET (device));
  		gtk_widget_set_sensitive (GTK_WIDGET (item), carrier);
 	}
 

Modified: trunk/src/applet-dialogs.c
==============================================================================
--- trunk/src/applet-dialogs.c	(original)
+++ trunk/src/applet-dialogs.c	Wed Mar 12 16:14:44 2008
@@ -156,7 +156,7 @@
 
 	str = NULL;
 	if (NM_IS_DEVICE_802_3_ETHERNET (device))
-		str = nm_device_802_3_ethernet_get_hw_address (NM_DEVICE_802_3_ETHERNET (device));
+		str = g_strdup (nm_device_802_3_ethernet_get_hw_address (NM_DEVICE_802_3_ETHERNET (device)));
 	else if (NM_IS_DEVICE_802_11_WIRELESS (device))
 		str = g_strdup (nm_device_802_11_wireless_get_hw_address (NM_DEVICE_802_11_WIRELESS (device)));
 



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