[chronojump/FS-TFT-Menu] If on encoder capture tabs only show bars, ensure they fill all the space (with a timeout)
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] If on encoder capture tabs only show bars, ensure they fill all the space (with a timeout)
- Date: Wed, 27 Apr 2022 17:18:05 +0000 (UTC)
commit 53d1d66daeda11482c232dbb2fd4adcb9774be02
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Apr 27 11:52:48 2022 +0200
If on encoder capture tabs only show bars, ensure they fill all the space (with a timeout)
src/gui/app1/encoder.cs | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index c6b937b46..99225ecc4 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -133,6 +133,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.VBox vbox_encoder_bars_table_and_save_reps;
[Widget] Gtk.HBox hbox_encoder_capture_save_repetitions;
[Widget] Gtk.HBox hbox_encoder_capture_show_need_one;
+ [Widget] Gtk.VPaned vpaned_encoder_main;
[Widget] Gtk.Alignment alignment_encoder_capture_curves_bars_drawingarea;
[Widget] Gtk.Box hbox_combo_encoder_exercise_capture;
@@ -1375,6 +1376,10 @@ public partial class ChronoJumpWindow
hbox_encoder_capture_show_need_one.Visible =
! (check_encoder_capture_bars.Active || check_encoder_capture_table.Active ||
check_encoder_capture_signal.Active);
+ if(check_encoder_capture_bars.Active && ! check_encoder_capture_table.Active &&
+ ! check_encoder_capture_signal.Active)
+ GLib.Timeout.Add(50, new GLib.TimeoutHandler(encoderBarsHeight));
+
/*
update the preferences variable
note as can be changed while capturing, it will be saved to SQL on exit
@@ -1385,6 +1390,11 @@ public partial class ChronoJumpWindow
check_encoder_capture_table.Active,
check_encoder_capture_bars.Active);
}
+ private bool encoderBarsHeight () //done later in order to have table and/or signal hidden
+ {
+ vpaned_encoder_main.Position = vpaned_encoder_main.MaxPosition;
+ return false;
+ }
private void encoderUpdateTreeViewCapture(List<string> contents)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]