[chronojump] Menu hidden from start page
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Menu hidden from start page
- Date: Mon, 21 Sep 2015 10:50:57 +0000 (UTC)
commit ac50e0529011f70e3b16a7051478cec2bb36aa13
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Sep 21 11:57:10 2015 +0200
Menu hidden from start page
glade/chronojump.glade | 73 ++++++++++++++++++++++++++++++++++++++++++++----
src/gui/chronojump.cs | 12 ++------
2 files changed, 70 insertions(+), 15 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 655d8fe..9fa5b6e 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -14,10 +14,10 @@
<property name="can_focus">False</property>
<child>
<widget class="GtkMenuBar" id="main_menu">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<widget class="GtkMenuItem" id="session_menuitem">
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Session</property>
<property name="use_underline">True</property>
@@ -244,6 +244,7 @@
</child>
<child>
<widget class="GtkMenuItem" id="menuitem_mode">
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Mode:</property>
<property name="use_underline">True</property>
@@ -1882,8 +1883,8 @@
<child>
<widget class="GtkNotebook" id="notebook_sup">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="show_tabs">False</property>
+ <property name="can_focus">False</property>
+ <property name="show_tabs">False</property>
<property name="show_border">False</property>
<property name="tab_hborder">18</property>
<property name="tab_vborder">4</property>
@@ -7922,6 +7923,9 @@ after time</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
<child>
@@ -9360,6 +9364,9 @@ after time</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">2</property>
@@ -10439,6 +10446,9 @@ after time</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">4</property>
@@ -22131,6 +22141,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -23109,6 +23122,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -24579,6 +24595,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>
@@ -25106,6 +25125,9 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -36876,6 +36898,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>
@@ -38751,6 +38791,18 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -40073,9 +40125,6 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<placeholder/>
</child>
<child>
- <placeholder/>
- </child>
- <child>
<widget class="GtkLabel" id="label218">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -41053,6 +41102,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>
@@ -44818,6 +44870,9 @@ It starts before and arrives there with some speed.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -45460,6 +45515,9 @@ It starts before and arrives there with some speed.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -46117,6 +46175,9 @@ It starts before and arrives there with some speed.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index ecf70ec..4722059 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2961,13 +2961,8 @@ public partial class ChronoJumpWindow
private void on_menuitem_mode_main_menu_activate (object o, EventArgs args) {
notebook_start.CurrentPage = 0;
- session_menuitem.Visible = false;
- menuitem_mode.Visible = false;
-
- menuitem_mode_selected_jumps.Visible = false;
- menuitem_mode_selected_runs.Visible = false;
- menuitem_mode_selected_power.Visible = false;
- menuitem_mode_selected_other.Visible = false;
+ //don't show menu bar on start page
+ main_menu.Visible = false;
}
enum menuitem_modes { JUMPS, RUNS, POWER, OTHER }
@@ -3004,8 +2999,7 @@ public partial class ChronoJumpWindow
notebook_start.CurrentPage = 1;
//it's not visible at startup
- session_menuitem.Visible = true;
- menuitem_mode.Visible = true;
+ main_menu.Visible = true;
//do not perform autoDetect if we are on contacts and already detected
if(chronopicWin.Connected && m != menuitem_modes.POWER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]