[chronojump] RepetitiveConditionsWin as dialog like preferences: avoid be under app1 after a double click
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RepetitiveConditionsWin as dialog like preferences: avoid be under app1 after a double click
- Date: Sat, 7 Oct 2017 13:10:54 +0000 (UTC)
commit acbe00bbd70fe37e0d6ed4dd22ee9166cdb90714
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Oct 7 14:38:29 2017 +0200
RepetitiveConditionsWin as dialog like preferences: avoid be under app1 after a double click
src/gui/repetitiveConditions.cs | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index 8f2b447..0fb26b1 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -156,6 +156,7 @@ public class RepetitiveConditionsWindow
//static bool volumeOn;
bool volumeOn;
+ public Preferences.GstreamerTypes gstreamer;
private double bestSetValue;
@@ -194,9 +195,8 @@ public class RepetitiveConditionsWindow
return RepetitiveConditionsWindowBox;
}
- public void View (Constants.BellModes bellMode, bool volumeOn) {
- //this.volumeOn = volumeOn;
-
+ public void View (Constants.BellModes bellMode, bool volumeOn, Preferences.GstreamerTypes gstreamer)
+ {
//when user "deleted_event" the window
if (RepetitiveConditionsWindowBox == null) {
RepetitiveConditionsWindowBox = new RepetitiveConditionsWindow ();
@@ -204,6 +204,7 @@ public class RepetitiveConditionsWindow
RepetitiveConditionsWindowBox.showWidgets(bellMode);
RepetitiveConditionsWindowBox.repetitive_conditions.Show ();
RepetitiveConditionsWindowBox.volumeOn = volumeOn;
+ RepetitiveConditionsWindowBox.gstreamer = gstreamer;
}
void showWidgets(Constants.BellModes bellMode)
@@ -310,9 +311,9 @@ public class RepetitiveConditionsWindow
{
if(volumeOn) {
if (o == button_test_good)
- Util.PlaySound(Constants.SoundTypes.GOOD, true);
+ Util.PlaySound(Constants.SoundTypes.GOOD, true, gstreamer);
else //button_test_bad
- Util.PlaySound(Constants.SoundTypes.BAD, true);
+ Util.PlaySound(Constants.SoundTypes.BAD, true, gstreamer);
} else
new DialogMessage(Constants.MessageTypes.INFO,
Catalog.GetString("You need to activate sounds in preferences /
multimedia."));
@@ -368,6 +369,9 @@ public class RepetitiveConditionsWindow
public bool VolumeOn {
set { volumeOn = value; }
}
+ public Preferences.GstreamerTypes Gstreamer {
+ set { gstreamer = value; }
+ }
/* Auto.mark checkbox if spinbutton is changed */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]