[chronojump] Extra mass icon shown on jumps simple (top and exercise options)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Extra mass icon shown on jumps simple (top and exercise options)
- Date: Wed, 24 Aug 2022 09:39:33 +0000 (UTC)
commit cdb21b628e396338e6e9e87df70c004b31694b52
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Aug 24 11:39:02 2022 +0200
Extra mass icon shown on jumps simple (top and exercise options)
glade/app1.glade | 24 ++++++++++++++++++++++++
src/gui/app1/contactsExercise.cs | 4 +++-
src/gui/app1/icons.cs | 1 +
3 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index b695bf9cc..6cea2a976 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -12215,6 +12215,23 @@ EncoderInertialCapture</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
+ <widget class="GtkHBox" id="hbox564">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">2</property>
+ <child>
+ <widget class="GtkImage"
id="extra_window_jumps_image_weight">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkLabel"
id="extra_window_jumps_label_weight">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -12223,6 +12240,13 @@ EncoderInertialCapture</property>
<property name="wrap">True</property>
</widget>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
diff --git a/src/gui/app1/contactsExercise.cs b/src/gui/app1/contactsExercise.cs
index 18d974e57..6b49be305 100644
--- a/src/gui/app1/contactsExercise.cs
+++ b/src/gui/app1/contactsExercise.cs
@@ -215,7 +215,9 @@ public partial class ChronoJumpWindow
name = extra_window_jumps_spinbutton_weight.Value.ToString() + " kg";
label_contacts_exercise_selected_options1.Text = name;
- image_contacts_exercise_selected_options1.Visible = false; //TODO: change to true
when have the image
+ image_contacts_exercise_selected_options1.Pixbuf =
+ new Pixbuf (null, Util.GetImagePath(false) + "extra-mass.png");
+ image_contacts_exercise_selected_options1.Visible = true;
} else {
label_contacts_exercise_selected_options1.Text = "";
image_contacts_exercise_selected_options1.Visible = false;
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index 098ed1d33..afae2535a 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -682,6 +682,7 @@ public partial class ChronoJumpWindow
image_tab_jumps_dj_optimal_fall.Pixbuf = pixbuf;
extra_window_jumps_image_fall.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"image_fall.png");
+ extra_window_jumps_image_weight.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"extra-mass.png");
image_tab_jumps_weight_fv_profile.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"jumps-fv.png");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]