mirror of
https://github.com/gryf/wicd.git
synced 2026-02-23 18:45:48 +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:
@@ -42,7 +42,7 @@ def get_bus():
|
||||
return DBUS_MANAGER.get_bus()
|
||||
|
||||
def set_mainloop():
|
||||
return DBUS_MANAGER.connect_to_mainloop()
|
||||
return DBUS_MANAGER.set_mainloop()
|
||||
|
||||
def connect_to_dbus():
|
||||
return DBUS_MANAGER.connect_to_dbus()
|
||||
@@ -50,6 +50,7 @@ def connect_to_dbus():
|
||||
def threads_init():
|
||||
dbus.mainloop.glib.threads_init()
|
||||
|
||||
|
||||
class DBusManager(object):
|
||||
""" Manages the DBus objects used by wicd. """
|
||||
def __init__(self):
|
||||
@@ -58,10 +59,12 @@ class DBusManager(object):
|
||||
|
||||
def get_dbus_ifaces(self):
|
||||
""" Returns a dict of dbus interfaces. """
|
||||
if not self._dbus_ifaces: connect_to_dbus()
|
||||
return self._dbus_ifaces
|
||||
|
||||
def get_interface(self, iface):
|
||||
""" Returns a DBus Interface. """
|
||||
if not self._dbus_ifaces: connect_to_dbus()
|
||||
return self._dbus_ifaces[iface]
|
||||
|
||||
def get_bus(self):
|
||||
|
||||
Reference in New Issue
Block a user