[longomatch] Add 50 and 60 fps to the list of framerates
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add 50 and 60 fps to the list of framerates
- Date: Wed, 5 Nov 2014 19:00:09 +0000 (UTC)
commit 81e1fe07bec00607d8e2a26ba1e9f66f3a2f2969
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Oct 28 11:30:52 2014 +0100
Add 50 and 60 fps to the list of framerates
.../Gui/Component/VideoPreferencesPanel.cs | 15 +++++++++++----
...ngoMatch.Gui.Component.VideoPreferencesPanel.cs | 2 ++
LongoMatch.GUI/gtk-gui/gui.stetic | 4 +++-
3 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
index 4531109..829009a 100644
--- a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
@@ -33,6 +33,10 @@ namespace LongoMatch.Gui.Component
if (Config.FPS_N == 30) {
fpscombobox.Active = 1;
+ } else if (Config.FPS_N == 50) {
+ fpscombobox.Active = 2;
+ } else if (Config.FPS_N == 60) {
+ fpscombobox.Active = 3;
} else {
fpscombobox.Active = 0;
}
@@ -90,12 +94,15 @@ namespace LongoMatch.Gui.Component
void HandleFPSChanged (object sender, EventArgs e)
{
- if (fpscombobox.ActiveText == "25 fps") {
+ Config.FPS_D = 1;
+ if (fpscombobox.Active == 0) {
Config.FPS_N = 25;
- Config.FPS_D = 1;
- } else {
+ } else if (fpscombobox.Active == 1) {
Config.FPS_N = 30;
- Config.FPS_D = 1;
+ } else if (fpscombobox.Active == 2) {
+ Config.FPS_N = 50;
+ } else if (fpscombobox.Active == 3) {
+ Config.FPS_N = 60;
}
}
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
index 5cd41e3..66c109f 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
@@ -61,6 +61,8 @@ namespace LongoMatch.Gui.Component
this.fpscombobox = global::Gtk.ComboBox.NewText ();
this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("25 fps"));
this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("30 fps"));
+ this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("50 fps"));
+ this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("60 fps"));
this.fpscombobox.Name = "fpscombobox";
this.fpscombobox.Active = 0;
this.hbox1.Add (this.fpscombobox);
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index e13f8d3..cc7d094 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -5094,7 +5094,9 @@ You can continue with the current capture, cancel it or save your project.
<property name="MemberName" />
<property name="IsTextCombo">True</property>
<property name="Items">25 fps
-30 fps</property>
+30 fps
+50 fps
+60 fps</property>
<property name="Active">0</property>
</widget>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]