1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Fixed more signal display issues

Added a "Connecting..." dialog to tray icon in experimental branch
Possibly fixed issue where GUI statusbar would still show up as connected when ethernet cable was unplugged.
This commit is contained in:
imdano
2007-09-20 13:11:43 +00:00
parent 6f0faa1ac2
commit 2aa36c7329
5 changed files with 70 additions and 17 deletions

View File

@@ -314,10 +314,10 @@ class ConnectionWizard(dbus.service.Object):
def FormatSignalForPrinting(self, signal):
''' Returns the suffix to display after the signal strength number '''
if self.GetSignalDisplayType() == 1:
return ("-" + signal + " dBm")
return (signal + " dBm")
else:
return (signal + "%")
# End function GetSignalSuffix
# End function FormatSignalForPrinting
@dbus.service.method('org.wicd.daemon')
@@ -587,6 +587,13 @@ class ConnectionWizard(dbus.service.Object):
return strength
#end function GetCurrentSignalStrength
@dbus.service.method('org.wicd.daemon.wireless')
def GetCurrentDBMStrength(self):
''' returns the current dbm signal strength '''
dbm_strength = int(self.wifi.GetDBMStrength())
return dbm_strength
@dbus.service.method('org.wicd.daemon.wireless')
def GetCurrentNetwork(self):
'''returns the current network'''