[chronojump/FS-TFT-Menu] Sensitivity fixes on button_inspect_last_test_run(simple|intervallic). Unsensitivize on change_mode,
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Sensitivity fixes on button_inspect_last_test_run(simple|intervallic). Unsensitivize on change_mode,
- Date: Wed, 27 Apr 2022 17:18:03 +0000 (UTC)
commit acb6b762798046c216cd52b6e10e4b8c21517422
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 22 11:05:41 2022 +0200
Sensitivity fixes on button_inspect_last_test_run(simple|intervallic).
Unsensitivize on change_mode, delete tests, select another
glade/app1.glade | 34 ++++++++++++++++++++--------------
src/gui/app1/chronojump.cs | 12 ++++++++++++
2 files changed, 32 insertions(+), 14 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 6b9f0e790..dfdc2d71e 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -7603,7 +7603,7 @@ EncoderInertialCapture</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
- <property name="tooltip"
translatable="yes">Inspect</property>
+ <property name="tooltip"
translatable="yes">Inspect last capture</property>
<signal name="clicked"
handler="on_button_inspect_last_test_clicked" swapped="no"/>
<child>
<widget class="GtkImage"
id="image_test_inspect1">
@@ -7879,7 +7879,7 @@ EncoderInertialCapture</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
- <property name="tooltip"
translatable="yes">Inspect</property>
+ <property name="tooltip"
translatable="yes">Inspect last capture</property>
<signal name="clicked"
handler="on_button_inspect_last_test_clicked" swapped="no"/>
<child>
<widget class="GtkImage" id="image_test_inspect">
@@ -26291,6 +26291,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -32699,18 +32702,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>
@@ -32747,6 +32738,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>
@@ -42036,6 +42039,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index adddca6c9..8bc5ef316 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1777,6 +1777,7 @@ public partial class ChronoJumpWindow
private void on_treeview_runs_cursor_changed (object o, EventArgs args)
{
sensitiveLastTestButtons(false);
+ button_inspect_last_test_run_simple.Sensitive = false;
// don't select if it's a person,
// is for not confusing with the person treeviews that controls who runs
@@ -1890,6 +1891,7 @@ public partial class ChronoJumpWindow
myTreeViewRunsInterval.SelectHeaderLine();
showHideActionEventButtons(true, "RunInterval");
+ button_inspect_last_test_run_intervallic.Sensitive = false;
//graph the run on realtime cairo graph. Using selectedRunInterval to avoid SQL select
continuously
if(selectedRunInterval == null || selectedRunIntervalType == null ||
@@ -3685,7 +3687,10 @@ public partial class ChronoJumpWindow
//align_check_vbox_contacts_graph_legend.Visible = true;
//vbox_contacts_graph_legend.Visible = false;
+ //show icon but have it unsensitive until there's a run
button_inspect_last_test_run_simple.Visible = true;
+ button_inspect_last_test_run_simple.Sensitive = false;
+
pixbufModeCurrent = new Pixbuf (null, Util.GetImagePath(false) +
"image_run_simple.png");
}
else
@@ -3694,7 +3699,10 @@ public partial class ChronoJumpWindow
button_contacts_bells.Sensitive = true;
on_extra_window_runs_interval_test_changed(new object(), new EventArgs());
event_execute_drawingarea_realtime_capture_cairo.Visible = true;
+
+ //show icon but have it unsensitive until there's a run
button_inspect_last_test_run_intervallic.Visible = true;
+ button_inspect_last_test_run_intervallic.Sensitive = false;
event_graph_label_graph_test.Visible = false;
vbox_contacts_simple_graph_controls.Visible = true;
@@ -5361,6 +5369,7 @@ public partial class ChronoJumpWindow
//hide jumping (running) buttons
sensitiveGuiEventDoing(false);
+ button_inspect_last_test_run_simple.Sensitive = false;
//show the event doing window
@@ -5431,6 +5440,7 @@ public partial class ChronoJumpWindow
{
//test can be deleted if not cancelled
sensitiveLastTestButtons(! currentEventExecute.Cancel);
+ button_inspect_last_test_run_simple.Sensitive = ! currentEventExecute.Cancel;
if ( ! currentEventExecute.Cancel ) {
currentRun = (Run) currentEventExecute.EventDone;
@@ -6798,6 +6808,7 @@ LogB.Debug("mc finished 5");
selectedRunInterval = null;
selectedRunIntervalType = null;
showHideActionEventButtons(false, "Run");
+ button_inspect_last_test_run_simple.Sensitive = false;
if(createdStatsWin) {
stats_win_fillTreeView_stats(false, false);
@@ -6824,6 +6835,7 @@ LogB.Debug("mc finished 5");
myTreeViewRunsInterval.DelEvent(id);
selectedRunInterval = null;
showHideActionEventButtons(false, "RunInterval");
+ button_inspect_last_test_run_intervallic.Sensitive = false;
if(createdStatsWin) {
stats_win_fillTreeView_stats(false, false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]