[chronojump] Better sensitivity of delete, play video. Not conflict with treeview top buttons



commit 09b219269d0626c3341067d413100bc4b6ceb078
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Dec 6 12:31:52 2016 +0100

    Better sensitivity of delete, play video. Not conflict with treeview top buttons

 glade/app1.glade      |    6 ++----
 src/gui/chronojump.cs |   36 +++++++++++++++++++++++++++++-------
 2 files changed, 31 insertions(+), 11 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index f0434e3..145dcd0 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -8920,9 +8920,8 @@ after time</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">True</property>
                                                             <property name="has_tooltip">True</property>
-                                                            <property name="tooltip" translatable="yes">Play 
Video (v)</property>
+                                                            <property name="tooltip" translatable="yes">Play 
Video</property>
                                                             <signal name="clicked" 
handler="on_video_play_selected_jump_clicked" swapped="no"/>
-                                                            <accelerator key="v" signal="clicked"/>
                                                             <child>
                                                             <widget class="GtkImage" id="image45">
                                                             <property name="visible">True</property>
@@ -8968,9 +8967,8 @@ after time</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">True</property>
                                                             <property name="has_tooltip">True</property>
-                                                            <property name="tooltip" 
translatable="yes">Delete selected (d)</property>
+                                                            <property name="tooltip" 
translatable="yes">Delete selected</property>
                                                             <signal name="clicked" 
handler="on_delete_selected_jump_clicked" swapped="no"/>
-                                                            <accelerator key="d" signal="clicked"/>
                                                             <child>
                                                             <widget class="GtkImage" id="image_jump_delete">
                                                             <property name="visible">True</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index b7e1f3d..3372c03 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -1352,8 +1352,12 @@ public partial class ChronoJumpWindow
                myTreeViewJumps = new TreeViewJumps(treeview_jumps, preferences, myTreeViewJumps.ExpandState);
        }
 
-       private void on_treeview_jumps_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_jumps_cursor_changed (object o, EventArgs args)
+       {
                LogB.Information("Cursor changed");
+
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who jumps
                if (myTreeViewJumps.EventSelectedID == 0) {
@@ -1439,7 +1443,10 @@ public partial class ChronoJumpWindow
                myTreeViewJumpsRj = new TreeViewJumpsRj (treeview_jumps_rj, preferences, 
myTreeViewJumpsRj.ExpandState);
        }
 
-       private void on_treeview_jumps_rj_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_jumps_rj_cursor_changed (object o, EventArgs args)
+       {
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who jumps
                if (myTreeViewJumpsRj.EventSelectedID == 0) {
@@ -1526,7 +1533,10 @@ public partial class ChronoJumpWindow
                myTreeViewRuns = new TreeViewRuns(treeview_runs, preferences.digitsNumber, 
preferences.metersSecondsPreferred, myTreeViewRuns.ExpandState);
        }
 
-       private void on_treeview_runs_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_runs_cursor_changed (object o, EventArgs args)
+       {
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who runs
                if (myTreeViewRuns.EventSelectedID == 0) {
@@ -1607,7 +1617,10 @@ public partial class ChronoJumpWindow
                                preferences.digitsNumber, preferences.metersSecondsPreferred, 
myTreeViewRunsInterval.ExpandState);
        }
 
-       private void on_treeview_runs_interval_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_runs_interval_cursor_changed (object o, EventArgs args)
+       {
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who runs
                if (myTreeViewRunsInterval.EventSelectedID == 0) {
@@ -1694,7 +1707,10 @@ public partial class ChronoJumpWindow
                myTreeViewReactionTimes = new TreeViewReactionTimes( treeview_reaction_times, 
preferences.digitsNumber, myTreeViewReactionTimes.ExpandState );
        }
 
-       private void on_treeview_reaction_times_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_reaction_times_cursor_changed (object o, EventArgs args)
+       {
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who is executing
                if (myTreeViewReactionTimes.EventSelectedID == 0) {
@@ -1774,7 +1790,10 @@ public partial class ChronoJumpWindow
                myTreeViewPulses = new TreeViewPulses( treeview_pulses, preferences.digitsNumber, 
myTreeViewPulses.ExpandState );
        }
 
-       private void on_treeview_pulses_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_pulses_cursor_changed (object o, EventArgs args)
+       {
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who is executing
                if (myTreeViewPulses.EventSelectedID == 0) {
@@ -1871,8 +1890,11 @@ public partial class ChronoJumpWindow
                                        myTreeViewMultiChronopic.ExpandState, 2);
        }
 
-       private void on_treeview_multi_chronopic_cursor_changed (object o, EventArgs args) {
+       private void on_treeview_multi_chronopic_cursor_changed (object o, EventArgs args)
+       {
                LogB.Information("Cursor changed");
+               vbox_last_test_buttons.Sensitive = false;
+
                // don't select if it's a person, 
                // is for not confusing with the person treeviews that controls who does events
                if (myTreeViewMultiChronopic.EventSelectedID == 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]