Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2013-04-25 10:35:48 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2013-05-28 04:57:48 (GMT)
commitc0b998b6f49068d6e648ded0566a41f8c5de617f (patch)
tree62f05697316f48a6743b786666ba28195d06fdb0
parent82bab3550f86464d600d5314c38d23318d79f3ad (diff)
Use the GLib.MAXINT32 instead of GObject.G_MAXINT32
G_MIN/MAX constants had been moved into GObject overrides (See pygobject c2aa6f0d0ed4c4e60f081b106dc7a65513963fce) but it is recommended to use the constants from GLib as those are pulled in directly from GI. Acked-by: Manuel QuiƱones <manuq@laptop.org> Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-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 21dc5f3..362822d 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, GObject.constants.G_MAXINT32, 0,
+ 'time-remaining': (int, None, None, 0, GLib.MAXINT32, 0,
GObject.PARAM_READABLE), # unit: seconds
'charging': (bool, None, None, False, GObject.PARAM_READABLE),
'discharging': (bool, None, None, False, GObject.PARAM_READABLE),