[longomatch] Add accelerators for the menu items



commit 017411bfcb7f7240646bc294e17a580ca2bcc2c9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Nov 28 12:37:43 2014 +0100

    Add accelerators for the menu items

 .../gtk-gui/LongoMatch.Gui.MainWindow.cs           |   14 +++++++-------
 LongoMatch.GUI/gtk-gui/gui.stetic                  |    8 +++++++-
 2 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
index 64b5d6e..87dc4db 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
@@ -66,10 +66,10 @@ namespace LongoMatch.Gui
                        w1.Add (this.ToolsAction, null);
                        this.ProjectsManagerAction = new global::Gtk.Action ("ProjectsManagerAction", 
global::Mono.Unix.Catalog.GetString ("Projects Manager"), null, null);
                        this.ProjectsManagerAction.ShortLabel = global::Mono.Unix.Catalog.GetString 
("Database Manager");
-                       w1.Add (this.ProjectsManagerAction, null);
+                       w1.Add (this.ProjectsManagerAction, "<Primary>m");
                        this.CategoriesTemplatesManagerAction = new global::Gtk.Action 
("CategoriesTemplatesManagerAction", global::Mono.Unix.Catalog.GetString ("Analysis Dashboards Manager"), 
null, null);
                        this.CategoriesTemplatesManagerAction.ShortLabel = 
global::Mono.Unix.Catalog.GetString ("Dashboards Manager");
-                       w1.Add (this.CategoriesTemplatesManagerAction, null);
+                       w1.Add (this.CategoriesTemplatesManagerAction, "<Primary>d");
                        this.ViewAction = new global::Gtk.Action ("ViewAction", 
global::Mono.Unix.Catalog.GetString ("_View"), null, null);
                        this.ViewAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_View");
                        w1.Add (this.ViewAction, "<Control>t");
@@ -93,13 +93,13 @@ namespace LongoMatch.Gui
                        w1.Add (this.ExportProjectToCSVFileAction, null);
                        this.TeamsTemplatesManagerAction = new global::Gtk.Action 
("TeamsTemplatesManagerAction", global::Mono.Unix.Catalog.GetString ("Teams Manager"), null, null);
                        this.TeamsTemplatesManagerAction.ShortLabel = global::Mono.Unix.Catalog.GetString 
("Teams Manager");
-                       w1.Add (this.TeamsTemplatesManagerAction, null);
+                       w1.Add (this.TeamsTemplatesManagerAction, "<Primary>t");
                        this.HelpAction1 = new global::Gtk.Action ("HelpAction1", 
global::Mono.Unix.Catalog.GetString ("_Help"), null, "gtk-help");
                        this.HelpAction1.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Help");
                        w1.Add (this.HelpAction1, null);
                        this.ImportProjectAction = new global::Gtk.Action ("ImportProjectAction", 
global::Mono.Unix.Catalog.GetString ("_Import Project"), null, "stock-import");
                        this.ImportProjectAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Import 
Project");
-                       w1.Add (this.ImportProjectAction, "<Control>i");
+                       w1.Add (this.ImportProjectAction, "<Primary>i");
                        this.ExportProjectAction = new global::Gtk.Action ("ExportProjectAction", 
global::Mono.Unix.Catalog.GetString ("Export Project"), null, null);
                        this.ExportProjectAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Export 
Project");
                        w1.Add (this.ExportProjectAction, null);
@@ -120,14 +120,14 @@ namespace LongoMatch.Gui
                        w1.Add (this.VideoConverterToolAction, null);
                        this.DatabasesManagerAction = new global::Gtk.Action ("DatabasesManagerAction", 
global::Mono.Unix.Catalog.GetString ("Databases Manager"), null, null);
                        this.DatabasesManagerAction.ShortLabel = global::Mono.Unix.Catalog.GetString 
("Databases Manager");
-                       w1.Add (this.DatabasesManagerAction, null);
+                       w1.Add (this.DatabasesManagerAction, "<Primary>b");
                        this.PreferencesAction = new global::Gtk.Action ("PreferencesAction", 
global::Mono.Unix.Catalog.GetString ("Preferences"), null, null);
                        this.PreferencesAction.ShortLabel = global::Mono.Unix.Catalog.GetString 
("Preferences");
-                       w1.Add (this.PreferencesAction, null);
+                       w1.Add (this.PreferencesAction, "<Primary>p");
                        this.ShowProjectStatsAction = new global::Gtk.Action ("ShowProjectStatsAction", 
global::Mono.Unix.Catalog.GetString ("Show project stats"), null, null);
                        this.ShowProjectStatsAction.Sensitive = false;
                        this.ShowProjectStatsAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Show 
project stats");
-                       w1.Add (this.ShowProjectStatsAction, null);
+                       w1.Add (this.ShowProjectStatsAction, "<Primary>h");
                        this.MigrationToolAction = new global::Gtk.Action ("MigrationToolAction", 
global::Mono.Unix.Catalog.GetString ("Migration Tool"), null, null);
                        this.MigrationToolAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Migration 
Tool");
                        w1.Add (this.MigrationToolAction, null);
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 72238b1..2bafae8 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -822,11 +822,13 @@ Sort by competition</property>
       </action>
       <action id="ProjectsManagerAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;m</property>
         <property name="Label" translatable="yes">Projects Manager</property>
         <property name="ShortLabel" translatable="yes">Database Manager</property>
       </action>
       <action id="CategoriesTemplatesManagerAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;d</property>
         <property name="Label" translatable="yes">Analysis Dashboards Manager</property>
         <property name="ShortLabel" translatable="yes">Dashboards Manager</property>
       </action>
@@ -873,6 +875,7 @@ Sort by competition</property>
       </action>
       <action id="TeamsTemplatesManagerAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;t</property>
         <property name="Label" translatable="yes">Teams Manager</property>
         <property name="ShortLabel" translatable="yes">Teams Manager</property>
       </action>
@@ -885,7 +888,7 @@ Sort by competition</property>
       </action>
       <action id="ImportProjectAction">
         <property name="Type">Action</property>
-        <property name="Accelerator">&lt;Control&gt;i</property>
+        <property name="Accelerator">&lt;Primary&gt;i</property>
         <property name="Label" translatable="yes">_Import Project</property>
         <property name="ShortLabel" translatable="yes">_Import Project</property>
         <property name="StockId">stock-import</property>
@@ -923,16 +926,19 @@ Sort by competition</property>
       </action>
       <action id="DatabasesManagerAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;b</property>
         <property name="Label" translatable="yes">Databases Manager</property>
         <property name="ShortLabel" translatable="yes">Databases Manager</property>
       </action>
       <action id="PreferencesAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;p</property>
         <property name="Label" translatable="yes">Preferences</property>
         <property name="ShortLabel" translatable="yes">Preferences</property>
       </action>
       <action id="ShowProjectStatsAction">
         <property name="Type">Action</property>
+        <property name="Accelerator">&lt;Primary&gt;h</property>
         <property name="Label" translatable="yes">Show project stats</property>
         <property name="Sensitive">False</property>
         <property name="ShortLabel" translatable="yes">Show project stats</property>


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