[chronojump] Fixed bad selection of notebook current page since recently
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bad selection of notebook current page since recently
- Date: Thu, 8 Jan 2015 01:01:54 +0000 (UTC)
commit d7ac83683c7df843dc6cf8d2f967ef0e77ef61be
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jan 8 02:01:24 2015 +0100
Fixed bad selection of notebook current page since recently
glade/chronojump.glade | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
src/gui/chronojump.cs | 5 +++-
2 files changed, 61 insertions(+), 1 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 15dd1be..be8e9c4 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -6378,6 +6378,9 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -7132,6 +7135,9 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
<child>
@@ -8138,6 +8144,9 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">2</property>
@@ -8785,6 +8794,9 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">4</property>
@@ -18962,6 +18974,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -19517,6 +19532,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -20564,6 +20582,9 @@ by you</property>
<placeholder/>
</child>
<child>
+ <placeholder/>
+ </child>
+ <child>
<widget class="GtkButton" id="button_video_url">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -20668,6 +20689,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -29686,6 +29710,24 @@ options</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -31621,6 +31663,9 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -32214,6 +32259,9 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -34773,6 +34821,9 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -34992,6 +35043,9 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -35226,6 +35280,9 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 22f1671..a07cec9 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2846,10 +2846,12 @@ public partial class ChronoJumpWindow
notebook_sup.CurrentPage = 0;
notebook_sup_contacts.CurrentPage = 0;
menuitem_mode_selected_jumps.Visible = true;
+ notebooks_change(0);
} else if(m == menuitem_modes.RUNS) {
notebook_sup.CurrentPage = 0;
notebook_sup_contacts.CurrentPage = 1;
menuitem_mode_selected_runs.Visible = true;
+ notebooks_change(2);
} else if(m == menuitem_modes.POWER) {
notebook_sup.CurrentPage = 1;
menuitem_mode_selected_power.Visible = true;
@@ -2857,6 +2859,7 @@ public partial class ChronoJumpWindow
notebook_sup.CurrentPage = 0;
notebook_sup_contacts.CurrentPage = 2;
menuitem_mode_selected_other.Visible = true;
+ notebooks_change(4);
}
//show the program
@@ -5795,7 +5798,7 @@ LogB.Debug("X");
//that will call updateComboStats
//and that will call Sqlite.
//This is dangerous because it can crash when notebooks_change is called after deleting a test
- //jsut disable notebooks change in that situation
+ //just disable notebooks change in that situation
stats_win_change_test_type(notebook_execute.CurrentPage);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]