Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@activitycentral.com>2013-09-17 23:32:58 (GMT)
committer Ruben Rodriguez <ruben@activitycentral.com>2013-09-17 23:32:58 (GMT)
commitb31794bcea09117d4b7f5404e19ebb0790004f27 (patch)
tree6be9f184168319d87f9dc77ef6366f033ec46018
parent5c9f859bc25c8f5ba6613d3db9ce0b20d20c9db2 (diff)
Changed GObject.G_MAXINT32 back to GObject.constants.G_MAXINT32 as the previous does not work on Ubuntu 12.04, the later works on DX4 as well.
Reverts c1dab7af Check http://comments.gmane.org/gmane.linux.laptop.olpc.sugar/40966
-rw-r--r--extensions/deviceicon/battery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/deviceicon/battery.py b/extensions/deviceicon/battery.py
index 362822d..21dc5f3 100644
--- a/extensions/deviceicon/battery.py
+++ b/extensions/deviceicon/battery.py
@@ -177,7 +177,7 @@ class BatteryPalette(Palette):
class DeviceModel(GObject.GObject):
__gproperties__ = {
'level': (int, None, None, 0, 100, 0, GObject.PARAM_READABLE),
- 'time-remaining': (int, None, None, 0, GLib.MAXINT32, 0,
+ 'time-remaining': (int, None, None, 0, GObject.constants.G_MAXINT32, 0,
GObject.PARAM_READABLE), # unit: seconds
'charging': (bool, None, None, False, GObject.PARAM_READABLE),
'discharging': (bool, None, None, False, GObject.PARAM_READABLE),