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

some minor adjustments and bug fixes

This commit is contained in:
imdano
2007-07-07 20:31:45 +00:00
parent 6bece259a3
commit e05a3ff264
2 changed files with 4 additions and 1 deletions

2
edgy.py Normal file → Executable file
View File

@@ -139,7 +139,7 @@ def set_signal_image():
print wireless.AutoConnect(True) print wireless.AutoConnect(True)
else: else:
print "networkID returned -1, waiting..." #This is usually only caused by hibernation print "networkID returned -1, waiting..." #This is usually only caused by hibernation
time.sleep(30) time.sleep(10)
config.EnableLogging() config.EnableLogging()
return True return True

3
gui.py
View File

@@ -719,6 +719,7 @@ class appGui:
self.useEncryptionCheckbox.connect("toggled",self.toggleEncryptionCheck) self.useEncryptionCheckbox.connect("toggled",self.toggleEncryptionCheck)
channelEntry.entry.set_text('3') channelEntry.entry.set_text('3')
essidEntry.entry.set_text('My_Adhoc_Network') essidEntry.entry.set_text('My_Adhoc_Network')
ipEntry.entry.set_text('169.254.12.10') #Just a random IP
vboxA = gtk.VBox(False,0) vboxA = gtk.VBox(False,0)
vboxA.pack_start(self.useEncryptionCheckbox,fill=False,expand=False) vboxA.pack_start(self.useEncryptionCheckbox,fill=False,expand=False)
@@ -874,11 +875,13 @@ class appGui:
strength = str(strength) strength = str(strength)
ip = str(wireless_ip) ip = str(wireless_ip)
self.statusID=self.status_bar.push(1,language['connected_to_wireless'].replace('$A',network).replace('$B',strength).replace('$C',wireless_ip)) self.statusID=self.status_bar.push(1,language['connected_to_wireless'].replace('$A',network).replace('$B',strength).replace('$C',wireless_ip))
config.EnableLogging() #reenable logging
return True return True
wired_ip = wired.GetWiredIP() wired_ip = wired.GetWiredIP()
if wired_ip: if wired_ip:
if wired.GetAlwaysShowWiredInterface() or wired.CheckPluggedIn(): if wired.GetAlwaysShowWiredInterface() or wired.CheckPluggedIn():
self.statusID = self.status_bar.push(1,language['connected_to_wired'].replace('$A',wired_ip)) self.statusID = self.status_bar.push(1,language['connected_to_wired'].replace('$A',wired_ip))
config.EnableLogging() #reenable logging
return True return True
self.statusID = self.status_bar.push(1,language['not_connected']) self.statusID = self.status_bar.push(1,language['not_connected'])
config.EnableLogging() #reenable logging config.EnableLogging() #reenable logging