summaryrefslogtreecommitdiff
path: root/invest-applet/invest/networkmanager.py
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-01-30 12:07:26 -0300
committerPerberos <[email protected]>2012-01-30 12:07:26 -0300
commit764b33d33ca2884e606e722cedd9e33bd88d901e (patch)
tree0a34ecb3809f459b663a3475ac56cf887c44af0f /invest-applet/invest/networkmanager.py
parent934a0a1f1c7766dd8193e020af6bed8134488e83 (diff)
parente094167059fd482d254e3724ddc28a640d8a4156 (diff)
downloadmate-applets-764b33d33ca2884e606e722cedd9e33bd88d901e.tar.bz2
mate-applets-764b33d33ca2884e606e722cedd9e33bd88d901e.tar.xz
Merge branch 'master' of https://github.com/mate-desktop/mate-applets
Diffstat (limited to 'invest-applet/invest/networkmanager.py')
-rw-r--r--invest-applet/invest/networkmanager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/invest-applet/invest/networkmanager.py b/invest-applet/invest/networkmanager.py
index 415e9ce4..152cd862 100644
--- a/invest-applet/invest/networkmanager.py
+++ b/invest-applet/invest/networkmanager.py
@@ -1,4 +1,4 @@
-import invest
+import mate_invest
from dbus.mainloop.glib import DBusGMainLoop
import dbus
@@ -19,7 +19,7 @@ class NetworkManager:
loop = DBusGMainLoop()
# get the NetworkManager object from D-Bus
- invest.debug("Connecting to Network Manager via D-Bus")
+ mate_invest.debug("Connecting to Network Manager via D-Bus")
bus = dbus.SystemBus(mainloop=loop)
nmobj = bus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager')
nm = dbus.Interface(nmobj, 'org.freedesktop.NetworkManager')
@@ -32,9 +32,9 @@ class NetworkManager:
# get the current status of the network manager
self.state = nm.state()
- invest.debug("Current Network Manager status is %d" % self.state)
+ mate_invest.debug("Current Network Manager status is %d" % self.state)
except Exception, msg:
- invest.error("Could not connect to the Network Manager: %s" % msg )
+ mate_invest.error("Could not connect to the Network Manager: %s" % msg )
def online(self):
return self.state == STATE_UNKNOWN or self.state == STATE_CONNECTED
@@ -47,7 +47,7 @@ class NetworkManager:
if isinstance(signal, dict):
state = signal.get('State')
if state != None:
- invest.debug("Network Manager change state %d => %d" % (self.state, state) );
+ mate_invest.debug("Network Manager change state %d => %d" % (self.state, state) );
self.state = state
# notify about state change