1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38: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

3
gui.py
View File

@@ -719,6 +719,7 @@ class appGui:
self.useEncryptionCheckbox.connect("toggled",self.toggleEncryptionCheck)
channelEntry.entry.set_text('3')
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.pack_start(self.useEncryptionCheckbox,fill=False,expand=False)
@@ -874,11 +875,13 @@ class appGui:
strength = str(strength)
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))
config.EnableLogging() #reenable logging
return True
wired_ip = wired.GetWiredIP()
if wired_ip:
if wired.GetAlwaysShowWiredInterface() or wired.CheckPluggedIn():
self.statusID = self.status_bar.push(1,language['connected_to_wired'].replace('$A',wired_ip))
config.EnableLogging() #reenable logging
return True
self.statusID = self.status_bar.push(1,language['not_connected'])
config.EnableLogging() #reenable logging