From c0b998b6f49068d6e648ded0566a41f8c5de617f Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 25 Apr 2013 10:35:48 +0000 Subject: 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 Signed-off-by: Ajay Garg --- 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), -- cgit v0.9.1