@@ -24,7 +24,6 @@ from preferences import Preferences
24
24
from preferences import VERSION
25
25
from sensors import SensorManager
26
26
27
-
28
27
textdomain ("indicator-sysmonitor" )
29
28
bindtextdomain ("indicator-sysmonitor" , "./lang" )
30
29
@@ -67,8 +66,8 @@ CPU {{cpu}} | MEM {{mem}} | root {{fs///}}
67
66
fs_desc = _ ("Show available space in the file system." ),
68
67
example = _ ("Example:" ))
69
68
70
- class IndicatorSysmonitor (object ):
71
69
70
+ class IndicatorSysmonitor (object ):
72
71
SENSORS_DISABLED = False
73
72
74
73
def __init__ (self ):
@@ -139,24 +138,24 @@ class IndicatorSysmonitor(object):
139
138
def update (self , data ):
140
139
# data is the dict of all sensors and their values
141
140
# { name, label }
142
-
141
+
143
142
# look through data and find out if there are any icons to be set
144
-
145
-
143
+
144
+
146
145
for sensor in data :
147
146
test_str = data [sensor ].lower ()
148
147
if "use_icon" in test_str :
149
148
path = data [sensor ].split (":" )[1 ]
150
- print (path )
149
+ print (path )
151
150
self .ind .set_icon_full (path , "" )
152
151
# now strip the icon output from data so that it is not displayed
153
-
152
+
154
153
remaining = test_str .split ("use_icon" )[0 ].strip ()
155
154
if not remaining :
156
155
remaining = " "
157
-
156
+
158
157
data [sensor ] = remaining
159
-
158
+
160
159
label = self .sensor_mgr .get_label (data )
161
160
162
161
self .ind .set_label (label , "" )
@@ -168,7 +167,7 @@ class IndicatorSysmonitor(object):
168
167
self .sensor_mgr .initiate_fetcher (self )
169
168
self .update_indicator_guide ()
170
169
171
- #@staticmethod
170
+ # @staticmethod
172
171
def save_settings (self ):
173
172
self .sensor_mgr .save_settings ()
174
173
@@ -199,8 +198,7 @@ class IndicatorSysmonitor(object):
199
198
self ._preferences_dialog .destroy ()
200
199
201
200
logging .info ("Terminated" )
202
- self .alive .clear () #DM: why bother with Event() ???
203
-
201
+ self .alive .clear () # DM: why bother with Event() ???
204
202
205
203
try :
206
204
Gtk .main_quit ()
0 commit comments