[meld] Replace gobject type bounds with constant for compat (closes bgo#630148)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Replace gobject type bounds with constant for compat (closes bgo#630148)
- Date: Sat, 25 Sep 2010 21:54:03 +0000 (UTC)
commit 0856f9d0c7e5672ff999338a7dcb3bfa60b43293
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Sep 24 06:08:25 2010 +1000
Replace gobject type bounds with constant for compat (closes bgo#630148)
Apparently older pygobject lacks the G_MAXFLOAT constant, so this change
simply uses a sensible upper limit instead.
This change should be reverted after branching for 1.4.
meld/diffmap.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/diffmap.py b/meld/diffmap.py
index 3b31b60..3e8467c 100644
--- a/meld/diffmap.py
+++ b/meld/diffmap.py
@@ -136,14 +136,14 @@ gtk.widget_class_install_style_property(DiffMap,
('width', float,
'Width',
'Width of the bar',
- 0.0, gobject.G_MAXFLOAT, 20,
+ 0.0, 100.0, 20,
gobject.PARAM_READABLE))
gtk.widget_class_install_style_property(DiffMap,
('x-padding', float,
'Width-wise padding',
'Padding to be left between left and '
'right edges and change blocks',
- 0.0, gobject.G_MAXFLOAT, 2.5,
+ 0.0, 50.0, 2.5,
gobject.PARAM_READABLE))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]