summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-11-07 18:11:52 +0000
committerJeremy Katz <katzj@redhat.com>2004-11-07 18:11:52 +0000
commitc85171a80fd248d3e05977354c3b310ba677a6fb (patch)
treed87942df85d9ba84225625c01c656c17c652ac54 /iw
parent45249a3489182931d9b49917cc3a5fe2bd565209 (diff)
downloadanaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.tar.gz
anaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.tar.xz
anaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.zip
2004-11-07 Jeremy Katz <katzj@redhat.com>
* iw/network_gui.py (NetworkWindow.editDevice): Add hardware address as another way to figure out which device is which (#131814) * textw/network_text.py (NetworkDeviceWindow.runScreen): Likewise.
Diffstat (limited to 'iw')
-rw-r--r--iw/network_gui.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index a7f4aa59e..ecfb5b394 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -241,22 +241,30 @@ class NetworkWindow(InstallWindow):
(_("Encryption _Key"), "wepkey")]
devopts.extend(newopt)
- ipTable = gtk.Table(len(options), 2)
+ ipTable = gtk.Table(len(options) + 1, 2)
DHCPcb.connect("toggled", self.DHCPtoggled, (self.devices[dev], ipTable))
# go ahead and set up DHCP on the first device
DHCPcb.set_active(bootproto == 'DHCP')
entrys = {}
+
+ hwaddr = self.devices[dev].get("hwaddr")
+ if hwaddr is not None and len(hwaddr) > 0:
+ label = gui.MnemonicLabel(_("Hardware address:"), (0.0, 0.5))
+ ipTable.attach(label, 0, 1, 0, 1, gtk.FILL, 0, 10, 5)
+ hwlabel = gtk.Label("%s" %(hwaddr,))
+ ipTable.attach(hwlabel, 1, 2, 0, 1)
+
for t in range(len(options)):
label = gtk.Label("%s:" %(options[t][0],))
label.set_alignment(0.0, 0.5)
label.set_property("use-underline", gtk.TRUE)
- ipTable.attach(label, 0, 1, t, t+1, gtk.FILL, 0, 10)
+ ipTable.attach(label, 0, 1, t+1, t+2, gtk.FILL, 0, 10)
entry = ipwidget.IPEditor()
entry.hydrate(self.devices[dev].get(options[t][1]))
entrys[t] = entry
label.set_mnemonic_widget(entry.getFocusableWidget())
- ipTable.attach(entry.getWidget(), 1, 2, t, t+1, 0, gtk.FILL|gtk.EXPAND)
+ ipTable.attach(entry.getWidget(), 1, 2, t+1, t+2, 0, gtk.FILL|gtk.EXPAND)
devbox.pack_start(ipTable, gtk.FALSE, gtk.FALSE, 6)
devbox.set_border_width(6)