From b31794bcea09117d4b7f5404e19ebb0790004f27 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 17 Sep 2013 23:32:58 +0000 Subject: 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 --- 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), -- cgit v0.9.1