[pitivi/1.0] widgets: Remove workaround for huge spinners
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/1.0] widgets: Remove workaround for huge spinners
- Date: Tue, 6 Mar 2018 23:44:54 +0000 (UTC)
commit d71bf00466449a3b8c3eb85b30dd9d3abbc26322
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Mar 4 01:10:06 2018 +0100
widgets: Remove workaround for huge spinners
The Spinner widgets are not huge anymore if the upper limit is very
large, on least Gtk 3.24.
Fixes #2143
pitivi/utils/widgets.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 3f079fb7..d3988b62 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -225,16 +225,12 @@ class NumericWidget(Gtk.Box, DynamicWidget):
upper is not None and upper < reasonable_limit)
self.adjustment = Gtk.Adjustment()
- # Limit the limits, otherwise the widget appears huge.
- # Workaround https://bugzilla.gnome.org/show_bug.cgi?id=727294
- # If these hardcoded limits are a problem, the fix should be passing
- # the proper limits using the upper and lower parameters.
if upper is None:
- upper = GLib.MAXINT16
+ upper = GLib.MAXINT32
if lower is None:
- lower = GLib.MININT16
- self.adjustment.props.lower = max(GLib.MININT16, lower)
- self.adjustment.props.upper = min(upper, GLib.MAXINT16)
+ lower = GLib.MININT32
+ self.adjustment.props.lower = lower
+ self.adjustment.props.upper = upper
if with_slider:
self.slider = Gtk.Scale.new(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]