[Monodevelop-patches-list] r995 - trunk/MonoDevelop/src/Main/Base/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 22 23:58:00 EST 2004
Author: tberman
Date: 2004-02-22 23:58:00 -0500 (Sun, 22 Feb 2004)
New Revision: 995
Modified:
trunk/MonoDevelop/src/Main/Base/Commands/MenuItemBuilders.cs
Log:
ctrl + [123456789] now changes active windows, closes bug #54266
Modified: trunk/MonoDevelop/src/Main/Base/Commands/MenuItemBuilders.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/MenuItemBuilders.cs 2004-02-23 03:04:36 UTC (rev 994)
+++ trunk/MonoDevelop/src/Main/Base/Commands/MenuItemBuilders.cs 2004-02-23 04:58:00 UTC (rev 995)
@@ -177,7 +177,6 @@
public Gtk.MenuItem[] BuildSubmenu(ConditionCollection conditionCollection, object owner)
{
- // IconMenuStyle iconMenuStyle = (IconMenuStyle)propertyService.GetProperty("IconMenuItem.IconMenuStyle", IconMenuStyle.VSNet);
int contentCount = WorkbenchSingleton.Workbench.ViewContentCollection.Count;
if (contentCount == 0) {
return new Gtk.MenuItem[] {};
@@ -195,6 +194,16 @@
item.Active = false;
}
item.Description = "Activate this window ";
+ if (i + 1 <= 9) {
+ string accel_path = "<MonoDevelop>/MainWindow/" + content.WorkbenchWindow.Title + (i + 1).ToString ();
+ if (!Gtk.Accel.MapLookupEntry (accel_path, new Gtk.AccelKey ())) {
+ Gtk.Accel.MapAddEntry (accel_path, Gdk.Keyval.FromName ((i + 1).ToString ()), Gdk.ModifierType.ControlMask);
+ item.AccelPath = accel_path;
+ } else {
+ Gtk.Accel.MapChangeEntry (accel_path, Gdk.Keyval.FromName ((i + 1).ToString()), Gdk.ModifierType.ControlMask, true);
+ item.AccelPath = accel_path;
+ }
+ }
items[i + 1] = item;
}
return items;
More information about the Monodevelop-patches-list
mailing list