[chronojump] Discover gui shows a title of the mode
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Discover gui shows a title of the mode
- Date: Tue, 17 May 2022 15:25:23 +0000 (UTC)
commit 8cafc7d03a3b9e02aa0d429ec8148bd58831da22
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue May 17 17:24:56 2022 +0200
Discover gui shows a title of the mode
glade/app1.glade | 35 ++++++++++++++++++++++-------------
src/gui/app1/chronojump.cs | 10 ++++------
2 files changed, 26 insertions(+), 19 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 337332049..e2cf36f44 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -26572,6 +26572,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -32980,18 +32983,6 @@ 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>
@@ -33028,6 +33019,18 @@ 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>
@@ -42359,6 +42362,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -50349,6 +50355,9 @@ Since Chronojump 2.1.3, backups contain the complete data.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -50368,7 +50377,7 @@ Since Chronojump 2.1.3, backups contain the complete data.</property>
</widget>
</child>
<child>
- <widget class="GtkLabel" id="label661">
+ <widget class="GtkLabel"
id="label_micro_discover_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Detect
device</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 88415b756..6c005dd8a 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -299,6 +299,7 @@ public partial class ChronoJumpWindow
//detect devices
[Widget] Gtk.VBox vbox_micro_discover;
+ [Widget] Gtk.Label label_micro_discover_title;
[Widget] Gtk.Table table_micro_discover;
[Widget] Gtk.Button button_contacts_detect;
[Widget] Gtk.Label label_micro_discover_ports;
@@ -4609,12 +4610,9 @@ public partial class ChronoJumpWindow
//ChronoDebug cDebug = new ChronoDebug("Discover " + current_mode.ToString());
//cDebug.Start();
- List<string> discoverPorts_l = Util.StringArrayToListString (ChronopicPorts.GetPorts ());
- label_micro_discover_ports.Text = string.Format(Catalog.GetPluralString(
- "Found 1 device.",
- "Found {0} devices.",
- discoverPorts_l.Count), discoverPorts_l.Count);
-
+ label_micro_discover_title.Text = string.Format(Catalog.GetString(
+ "Detect device for mode: <b>{0}</b>"), modePrint(current_mode));
+ label_micro_discover_title.UseMarkup = true;
app1s_notebook_sup_entered_from = notebook_sup.CurrentPage; //CONTACTS or ENCODER
notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.MICRODISCOVER);
menus_and_mode_sensitive (false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]