From 8265e6f5887015c9c78a44ccbacdd0c6227a5c83 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 25 Aug 2008 12:26:19 -1000 Subject: Use dbus in hasActiveNetDev() and _anyUsing() Rewrote the hasActiveNetDev() and _anyUsing() function in network.py to talk to NetworkManager via dbus. Modified the calls in iw/network_gui.py and textw/network_text.py that use these functions. --- iw/network_gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iw') diff --git a/iw/network_gui.py b/iw/network_gui.py index 3da933364..efab6de31 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -141,7 +141,7 @@ class NetworkWindow(InstallWindow): if self.getNumberActiveDevices() == 0: state = False else: - state = network.anyUsingStatic(self.devices) + state = network.anyUsingStatic() self.ipTable.set_sensitive(state) @@ -523,7 +523,7 @@ class NetworkWindow(InstallWindow): # bring over the value from the loader self.hostnameEntry.set_text(self.network.hostname) - if not network.anyUsingDHCP(self.devices): + if not network.anyUsingDHCP(): if self.network.gateway: self.globals[_("Gateway")].set_text(self.network.gateway) if self.network.primaryNS: @@ -545,7 +545,7 @@ class NetworkWindow(InstallWindow): self.hostnameEntry.set_sensitive(not self.hostnameUseDHCP.get_active()) self.setIPTableSensitivity() - self.hostnameUseDHCP.set_sensitive(network.anyUsingDHCP(self.devices)) + self.hostnameUseDHCP.set_sensitive(network.anyUsingDHCP()) return box -- cgit