[chronojump/michrolab] Better aligns for races icons at start
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Better aligns for races icons at start
- Date: Thu, 14 Jul 2022 16:37:58 +0000 (UTC)
commit 76738ef64292bd4a5762dc1885c810b52d47146f
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jul 12 16:57:40 2022 +0200
Better aligns for races icons at start
glade/app1.glade | 16 +++++++++++-----
src/gui/app1/chronojump.cs | 7 ++++++-
2 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 05f2495f7..fef772c1d 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -3361,12 +3361,18 @@
<widget class="GtkVBox" id="vbox280">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">16</property>
+ <child>
+ <widget class="GtkAlignment"
id="align_label_selector_menu_2_2_2_desc">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="bottom_padding">16</property>
<child>
<widget class="GtkLabel"
id="label_selector_menu_2_2_2_desc">
<property name="visible">True</property>
<property name="can_focus">False</property>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
@@ -3557,7 +3563,7 @@
<widget class="GtkLabel"
id="label_start_selector_races2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">WICHRO
or cabled photocells</property>
+ <property name="label"
translatable="yes">Measured by WICHRO or cabled photocells</property>
</widget>
<packing>
<property name="expand">True</property>
@@ -3724,7 +3730,7 @@
<widget class="GtkLabel"
id="label_start_selector_races3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label"
translatable="yes">Encoder</property>
+ <property name="label"
translatable="yes">Measured by Encoder</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -3969,9 +3975,9 @@
</child>
</widget>
<packing>
- <property name="expand">True</property>
+ <property name="expand">False</property>
<property name="fill">False</property>
- <property name="padding">12</property>
+ <property name="padding">24</property>
<property name="position">2</property>
</packing>
</child>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 157822b0d..a572d8a82 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -4393,6 +4393,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Notebook notebook_menu_2_2_2; //0 jumps, 1 races, 2 isometric/elastic/weights/inertial
[Widget] Gtk.Label label_selector_menu_2_2_2_title;
[Widget] Gtk.Label label_selector_menu_2_2_2_desc;
+ [Widget] Gtk.Alignment align_label_selector_menu_2_2_2_desc;
//clicked from start_window
private void on_button_menu_2_2_2_clicked (object o, EventArgs args)
@@ -4423,7 +4424,8 @@ public partial class ChronoJumpWindow
canBeDoubleClick = false;
title = "Races";
- desc = "Measured by …";
+ desc = ""; //"Measured by …";
+
notebook_menu_2_2_2.CurrentPage = 1;
}
else if (o == (object) radio_menu_2_2_2_isometric)
@@ -4451,6 +4453,9 @@ public partial class ChronoJumpWindow
notebook_menu_2_2_2.CurrentPage = 2;
}
+ //do not show desc on races (it has its own labels on table columns)
+ align_label_selector_menu_2_2_2_desc.Visible = (o != (object) radio_menu_2_2_2_races);
+
// if we already have clicked before, execute go!
if (canBeDoubleClick && label_selector_menu_2_2_2_title.Text == Catalog.GetString(title))
//note the "<b></b>" are not on .Text
on_button_menu_2_2_2_go_clicked (new object (), new EventArgs ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]