[chronojump] left/right buttons for encoder exercise not only for compujump
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] left/right buttons for encoder exercise not only for compujump
- Date: Fri, 14 Jul 2017 11:42:35 +0000 (UTC)
commit cc55718b006c5421aafde46711b8e5b1322c33c1
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jul 14 13:41:32 2017 +0200
left/right buttons for encoder exercise not only for compujump
src/gui/encoder.cs | 28 +++++++++++-----------------
1 files changed, 11 insertions(+), 17 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index e201166..a5aa40a 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3396,26 +3396,20 @@ public partial class ChronoJumpWindow
//is not an spinbutton because values can be separated: "3,4,7,21"
combo_encoder_analyze_curve_num_combo = ComboBox.NewText ();
UtilGtk.ComboUpdate(combo_encoder_analyze_curve_num_combo, Util.StringToStringArray(""), "");
-
-
- //pack combos
- if(configChronojump.Compujump)
- {
- button_combo_encoder_exercise_capture_left =
UtilGtk.CreateArrowButton(ArrowType.Left, ShadowType.In, 40, 40);
- button_combo_encoder_exercise_capture_left.Sensitive = false;
- button_combo_encoder_exercise_capture_left.Clicked +=
on_button_encoder_exercise_capture_left_clicked;
-
hbox_combo_encoder_exercise_capture.PackStart(button_combo_encoder_exercise_capture_left, true, true, 0);
- hbox_combo_encoder_exercise_capture.PackStart(combo_encoder_exercise_capture, true,
true, 10);
+ //pack combos
+ button_combo_encoder_exercise_capture_left = UtilGtk.CreateArrowButton(ArrowType.Left,
ShadowType.In, 40, 40);
+ button_combo_encoder_exercise_capture_left.Sensitive = false;
+ button_combo_encoder_exercise_capture_left.Clicked +=
on_button_encoder_exercise_capture_left_clicked;
+ hbox_combo_encoder_exercise_capture.PackStart(button_combo_encoder_exercise_capture_left,
true, true, 0);
- button_combo_encoder_exercise_capture_right =
UtilGtk.CreateArrowButton(ArrowType.Right, ShadowType.In, 40, 40);
- button_combo_encoder_exercise_capture_right.Sensitive = true;
- button_combo_encoder_exercise_capture_right.Clicked +=
on_button_encoder_exercise_capture_right_clicked;
-
hbox_combo_encoder_exercise_capture.PackStart(button_combo_encoder_exercise_capture_right, true, true, 0);
- } else {
- hbox_combo_encoder_exercise_capture.PackStart(combo_encoder_exercise_capture, true,
true, 0);
- }
+ hbox_combo_encoder_exercise_capture.PackStart(combo_encoder_exercise_capture, true, true, 10);
+
+ button_combo_encoder_exercise_capture_right = UtilGtk.CreateArrowButton(ArrowType.Right,
ShadowType.In, 40, 40);
+ button_combo_encoder_exercise_capture_right.Sensitive = true;
+ button_combo_encoder_exercise_capture_right.Clicked +=
on_button_encoder_exercise_capture_right_clicked;
+ hbox_combo_encoder_exercise_capture.PackStart(button_combo_encoder_exercise_capture_right,
true, true, 0);
hbox_combo_encoder_exercise_capture.ShowAll();
combo_encoder_exercise_capture.Sensitive = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]