[chronojump] always volumeOn



commit 983c39283bc1b220fb4dcfc353a4cfab82149dfd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Feb 1 13:57:48 2013 +0100

    always volumeOn

 glade/chronojump.glade |   14 ++++++++++----
 src/gui/chronojump.cs  |    5 ++++-
 2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 8e04989..e649c8d 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -5803,7 +5803,6 @@ Second Chronopic to platforms.</property>
                                                             <property name="spacing">2</property>
                                                             <child>
                                                             <widget class="GtkCheckButton" id="checkbutton_video">
-                                                            <property name="visible">False</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">False</property>
                                                             <property name="tooltip" translatable="yes">Record video (on / off)</property>
@@ -5859,7 +5858,6 @@ Second Chronopic to platforms.</property>
                                                             </child>
                                                             <child>
                                                             <widget class="GtkCheckButton" id="checkbutton_volume">
-                                                            <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">False</property>
                                                             <property name="tooltip" translatable="yes">Play sound (on / off)</property>
@@ -5914,6 +5912,11 @@ Second Chronopic to platforms.</property>
                                                             </packing>
                                                             </child>
                                                             <child>
+                                                            <widget class="GtkAlignment" id="alignment31">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="top_padding">12</property>
+                                                            <child>
                                                             <widget class="GtkButton" id="button_execute_test">
                                                             <property name="height_request">60</property>
                                                             <property name="visible">True</property>
@@ -5955,6 +5958,8 @@ Second Chronopic to platforms.</property>
                                                             </widget>
                                                             </child>
                                                             </widget>
+                                                            </child>
+                                                            </widget>
                                                             <packing>
                                                             <property name="expand">True</property>
                                                             <property name="fill">True</property>
@@ -14870,7 +14875,8 @@ Evaluator can use real name or nickname.</property>
               <widget class="GtkLabel" id="label8">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
-                <property name="label" translatable="yes">Contacts (platform or photocell)</property>
+                <property name="label" translatable="yes">Contacts
+(platform or photocell)</property>
               </widget>
               <packing>
                 <property name="tab_fill">False</property>
@@ -14894,7 +14900,7 @@ Evaluator can use real name or nickname.</property>
                       <widget class="GtkLabel" id="label10">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label">Select the port where Chronopic is connected.
+                        <property name="label" translatable="yes">Select the port where Chronopic is connected.
 
 There's no port comprobation or activation on encoder.
 
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 8fe7660..bcd737e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -255,7 +255,7 @@ public partial class ChronoJumpWindow
 	[Widget] Gtk.Image image_encoder_signal_delete;
 
 	Random rand;
-	bool volumeOn;
+	bool volumeOn; //TODO: always true now because it's hidden from GUI until videoOn is working
 	bool videoOn; //TODO: now always false because it crashes on windows
 
 	//persons
@@ -833,10 +833,13 @@ public partial class ChronoJumpWindow
 		else 
 			metersSecondsPreferred = false;
 
+		/*
 		if ( SqlitePreferences.Select("volumeOn") == "True" ) 
 			volumeOn = true;
 		else 
 			volumeOn = false;
+		*/
+		volumeOn = true;
 		
 		UtilGtk.ColorsCheckOnlyPrelight(checkbutton_volume);
 		changeVolumeButton(volumeOn);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]