[chronojump] Contacts results test/all shown at left



commit 20f80568a0df4a43852f407a5b909d473514f6f9
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Aug 4 00:11:38 2021 +0200

    Contacts results test/all shown at left

 glade/app1.glade           | 110 ++++++++++++++++++++++-----------------------
 src/gui/app1/chronojump.cs |   7 +--
 2 files changed, 56 insertions(+), 61 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index d3916f9c2..5bc8a2da2 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -7705,6 +7705,61 @@ EncoderInertialCapture</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">40</property>
                                                             <child>
+                                                            <widget class="GtkHBox" 
id="hbox_contacts_graph_test">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label558">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Test:</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_currentTest">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="active">True</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_test_toggled" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_allTests">
+                                                            <property name="label" 
translatable="yes">All</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <property 
name="group">radio_contacts_graph_currentTest</property>
+                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_test_toggled" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" id="hbox554">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -7802,61 +7857,6 @@ EncoderInertialCapture</property>
                                                             <packing>
                                                             <property name="expand">True</property>
                                                             <property name="fill">True</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkHBox" 
id="hbox_contacts_graph_test">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
-                                                            <child>
-                                                            <widget class="GtkLabel" id="label558">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" 
translatable="yes">Test:</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_currentTest">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property 
name="receives_default">False</property>
-                                                            <property name="active">True</property>
-                                                            <property name="draw_indicator">False</property>
-                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_test_toggled" swapped="no"/>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">True</property>
-                                                            <property name="fill">True</property>
-                                                            <property name="position">1</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_allTests">
-                                                            <property name="label" 
translatable="yes">All</property>
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property 
name="receives_default">False</property>
-                                                            <property name="draw_indicator">False</property>
-                                                            <property 
name="group">radio_contacts_graph_currentTest</property>
-                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_test_toggled" swapped="no"/>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">True</property>
-                                                            <property name="fill">True</property>
-                                                            <property name="position">2</property>
-                                                            </packing>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
                                                             <property name="position">1</property>
                                                             </packing>
                                                             </child>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 71b0a12fd..0911d8743 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -94,7 +94,6 @@ public partial class ChronoJumpWindow
 
        [Widget] Gtk.Alignment alignment_contacts_show_graph_table;
        [Widget] Gtk.HBox hbox_contacts_capture_show_need_one;
-       [Widget] Gtk.HBox hbox_contacts_graph_test;
        [Widget] Gtk.CheckButton check_contacts_capture_graph;
        [Widget] Gtk.CheckButton check_contacts_capture_table;
 
@@ -3957,13 +3956,9 @@ public partial class ChronoJumpWindow
                notebook_results.Visible = check_contacts_capture_table.Active;
 
                if ( check_contacts_capture_graph.Active || check_contacts_capture_table.Active)
-               {
                        hbox_contacts_capture_show_need_one.Visible = false;
-                       hbox_contacts_graph_test.Visible = true;
-               } else {
+               else
                        hbox_contacts_capture_show_need_one.Visible = true;
-                       hbox_contacts_graph_test.Visible = false;
-               }
 
                /*
                   update the preferences variable


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