mirror of
https://github.com/gryf/wicd.git
synced 2026-01-05 21:34:16 +01:00
Make backend combobox tooltip display the active backend's description.
Reverse the order of the OK/Cancel button in the Ad-Hoc connection dialog. Use a new set of icons. Extend the update invervals for all backends by 1 second. Try to use en_US.utf8 instead of C as the LANG in misc.Run if it is available. Add ability to force a network state update. (Currently not used).
This commit is contained in:
@@ -210,6 +210,16 @@ class WicdDaemon(dbus.service.Object):
|
||||
""" Returns status update interval for the loaded backend. """
|
||||
return networking.get_backend_update_interval()
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
def GetBackendDescription(self, backend_name):
|
||||
""" Returns the description of the given backend. """
|
||||
return networking.get_backend_description(backend_name)
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
def GetBackendDescriptionDict(self):
|
||||
""" Returns a dict of all backend names mapped to their description. """
|
||||
return networking.get_backend_description_dict()
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
def GetSavedBackend(self):
|
||||
""" Returns the backend saved to disk. """
|
||||
@@ -720,6 +730,10 @@ class WicdDaemon(dbus.service.Object):
|
||||
def ConnectResultsSent(self, result):
|
||||
print "Sending connection attempt result %s" % result
|
||||
|
||||
@dbus.service.signal(dbus_interface="org.wicd.daemon", signature='')
|
||||
def UpdateState(self):
|
||||
pass
|
||||
|
||||
@dbus.service.signal(dbus_interface='org.wicd.daemon', signature='')
|
||||
def LaunchChooser(self):
|
||||
""" Emits the wired profile chooser dbus signal. """
|
||||
@@ -1326,8 +1340,7 @@ class WiredDaemon(dbus.service.Object):
|
||||
return False
|
||||
|
||||
for option in ["ip", "broadcast", "netmask","gateway", "dns1", "dns2",
|
||||
"dns3", "beforescript", "afterscript",
|
||||
"disconnectscript"]:
|
||||
"dns3", "beforescript", "afterscript", "disconnectscript"]:
|
||||
self.config.set(profilename, option, None)
|
||||
self.config.set(profilename, "default", default)
|
||||
self.config.write()
|
||||
|
||||
Reference in New Issue
Block a user