[pitivi] ui: Use integers for Gst.Fraction
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui: Use integers for Gst.Fraction
- Date: Tue, 31 Jan 2017 23:20:49 +0000 (UTC)
commit 8ae43d86bdaf3cdd151e3199860d61324b8b0331
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Feb 1 00:14:48 2017 +0100
ui: Use integers for Gst.Fraction
pitivi/utils/ui.py | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index a176aee..6f68b63 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -539,18 +539,18 @@ def fix_infobar(infobar):
# FIXME This should into a special file
frame_rates = model((str, object), (
# Translators: fps is for frames per second
- (_("%d fps") % 12, Gst.Fraction(12.0, 1.0)),
- (_("%d fps") % 15, Gst.Fraction(15.0, 1.0)),
- (_("%d fps") % 20, Gst.Fraction(20.0, 1.0)),
- (_("%.3f fps") % 23.976, Gst.Fraction(24000.0, 1001.0)),
- (_("%d fps") % 24, Gst.Fraction(24.0, 1.0)),
- (_("%d fps") % 25, Gst.Fraction(25.0, 1.0)),
- (_("%.2f fps") % 29.97, Gst.Fraction(30000.0, 1001.0)),
- (_("%d fps") % 30, Gst.Fraction(30.0, 1.0)),
- (_("%d fps") % 50, Gst.Fraction(50.0, 1.0)),
- (_("%.2f fps") % 59.94, Gst.Fraction(60000.0, 1001.0)),
- (_("%d fps") % 60, Gst.Fraction(60.0, 1.0)),
- (_("%d fps") % 120, Gst.Fraction(120.0, 1.0)),
+ (_("%d fps") % 12, Gst.Fraction(12, 1)),
+ (_("%d fps") % 15, Gst.Fraction(15, 1)),
+ (_("%d fps") % 20, Gst.Fraction(20, 1)),
+ (_("%.3f fps") % 23.976, Gst.Fraction(24000, 1001)),
+ (_("%d fps") % 24, Gst.Fraction(24, 1)),
+ (_("%d fps") % 25, Gst.Fraction(25, 1)),
+ (_("%.2f fps") % 29.97, Gst.Fraction(30000, 1001)),
+ (_("%d fps") % 30, Gst.Fraction(30, 1)),
+ (_("%d fps") % 50, Gst.Fraction(50, 1)),
+ (_("%.2f fps") % 59.94, Gst.Fraction(60000, 1001)),
+ (_("%d fps") % 60, Gst.Fraction(60, 1)),
+ (_("%d fps") % 120, Gst.Fraction(120, 1)),
))
audio_rates = model((str, int), (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]