[longomatch] Move about menu to app menu
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Move about menu to app menu
- Date: Wed, 4 Feb 2015 11:03:37 +0000 (UTC)
commit 94ca6791b7b507043ea4574bc20baf6a5901cd2a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Feb 4 12:03:08 2015 +0100
Move about menu to app menu
LongoMatch.GUI/Gui/MainWindow.cs | 6 ++++++
LongoMatch/Main.cs | 7 ++++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index c68af7d..987878e 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -89,6 +89,12 @@ namespace LongoMatch.Gui
return (MenuItem)this.UIManager.GetWidget
("/menubar1/FileAction/PreferencesAction");
}
}
+
+ public MenuItem AboutMenu {
+ get {
+ return (MenuItem)this.UIManager.GetWidget
("/menubar1/FileAction/AboutAction");
+ }
+ }
public void SetPanel (Widget panel)
{
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index 2f24ef9..71075a3 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -103,7 +103,7 @@ namespace LongoMatch
static void ConfigureOSXApp ()
{
#if OSTYPE_OS_X
- MenuItem quit, preferences;
+ MenuItem quit;
GtkOSXApplication app;
app = new GtkOSXApplication ();
@@ -113,10 +113,11 @@ namespace LongoMatch
};
quit = window.QuitMenu;
- preferences = window.PreferencesMenu;
quit.Visible = false;
app.SetMenuBar (window.Menu);
- app.InsertAppMenuItem (preferences, 0);
+ app.InsertAppMenuItem (window.AboutMenu, 0);
+ app.InsertAppMenuItem (new SeparatorMenuItem (), 1);
+ app.InsertAppMenuItem (window.PreferencesMenu, 2);
window.Menu.Visible = false;
app.UseQuartzAccelerators = false;
app.Ready ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]