[chronojump] label for encoder rhythm



commit bef730738675cb389da6dd4a6ba9b9060e8c6fcb
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jan 7 18:19:08 2022 +0100

    label for encoder rhythm

 glade/app1.glade        | 32 +++++++++++++++++++-------------
 src/gui/app1/encoder.cs |  3 +++
 2 files changed, 22 insertions(+), 13 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 5cf9a364b..c914c76ce 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24877,6 +24877,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -30854,7 +30857,7 @@ Concentric</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label289">
+                                                            <widget class="GtkLabel" id="label_rhythm">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="tooltip" 
translatable="yes">Adaptive rhythm</property>
@@ -31234,6 +31237,18 @@ Concentric</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
                                                             <child>
+                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="pack_type">end</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_capturing">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
@@ -31270,18 +31285,6 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -40648,6 +40651,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 575852dc7..889977a3d 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -105,6 +105,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.ProgressBar encoder_pulsebar_rhythm_eccon;
        [Widget] Gtk.Label label_encoder_rhythm_rest;
        [Widget] Gtk.Image image_encoder_rhythm_alert;
+       [Widget] Gtk.Label label_rhythm;
        [Widget] Gtk.VBox vbox_encoder_signal_comment;
        [Widget] Gtk.Notebook notebook_encoder_signal_comment_rhythm_and_triggers;
        [Widget] Gtk.TextView textview_encoder_signal_comment;
@@ -6222,9 +6223,11 @@ public partial class ChronoJumpWindow
                                 */
                                if(encoderRhythm.ActiveRhythm) {
                                        encoderRhythmExecute = new EncoderRhythmExecuteHasRhythm 
(encoderRhythm, ! encoderConfigurationCurrent.has_inertia);
+                                       label_rhythm.Text = Catalog.GetString("Rhythm");
                                        encoder_pulsebar_rhythm_eccon.Visible = true;
                                } else if(encoderRhythm.UseClusters()) {
                                        encoderRhythmExecute = new EncoderRhythmExecuteJustClusters 
(encoderRhythm, ! encoderConfigurationCurrent.has_inertia);
+                                       label_rhythm.Text = "Clusters"; //TODO: translate
                                        encoder_pulsebar_rhythm_eccon.Visible = false;
                                }
 


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