network-manager-applet r587 - trunk/src/utils



Author: tambeti
Date: Tue Mar 11 17:22:12 2008
New Revision: 587
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=587&view=rev

Log:
2008-03-11  Tambet Ingo  <tambet gmail com>

	* src/utils/utils.c (connection_valid_for_wired): Show PPPoE connections.


Modified:
   trunk/src/utils/utils.c

Modified: trunk/src/utils/utils.c
==============================================================================
--- trunk/src/utils/utils.c	(original)
+++ trunk/src/utils/utils.c	Tue Mar 11 17:22:12 2008
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
 /* NetworkManager Wireless Applet -- Display wireless access points and allow user control
  *
  * Dan Williams <dcbw redhat com>
@@ -36,6 +38,7 @@
 #include <nm-setting-wireless-security.h>
 #include <nm-setting-gsm.h>
 #include <nm-setting-cdma.h>
+#include <nm-setting-pppoe.h>
 #include <nm-utils.h>
 
 #include "crypto.h"
@@ -536,6 +539,9 @@
 	NMSettingWired *s_wired;
 	const char *str_mac;
 	struct ether_addr *bin_mac;
+
+	if (!strcmp (s_con->type, NM_SETTING_PPPOE_SETTING_NAME))
+		return TRUE;
 	
 	if (strcmp (s_con->type, NM_SETTING_WIRED_SETTING_NAME))
 		return FALSE;



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