[Monodevelop-patches-list] r1905 - in trunk/MonoDevelop/Core/src/Main/Base: . Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jul 5 20:51:36 EDT 2004
Author: tberman
Date: 2004-07-05 20:51:36 -0400 (Mon, 05 Jul 2004)
New Revision: 1905
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Commands/MenuItemBuilders.cs
Log:
fix issue with underscores in filenames
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-05 22:42:58 UTC (rev 1904)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-06 00:51:36 UTC (rev 1905)
@@ -1,5 +1,10 @@
2004-07-05 Todd Berman <tberman at off.net>
+ * Commands/MenuItemBuilders.cs: properly escape filename with
+ underscores in them.
+
+2004-07-05 Todd Berman <tberman at off.net>
+
* Gui/Pads/HelpBrowser/HelpViewer.cs: enable images in monodoc.
2004-07-05 Todd Berman <tberman at off.net>
Modified: trunk/MonoDevelop/Core/src/Main/Base/Commands/MenuItemBuilders.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Commands/MenuItemBuilders.cs 2004-07-05 22:42:58 UTC (rev 1904)
+++ trunk/MonoDevelop/Core/src/Main/Base/Commands/MenuItemBuilders.cs 2004-07-06 00:51:36 UTC (rev 1905)
@@ -57,7 +57,7 @@
for (int i = 0; i < recentOpen.RecentFile.Count; ++i) {
string accelaratorKeyPrefix = i < 10 ? "&" + ((i + 1) % 10).ToString() + " " : "";
- items[i] = new RFMItem(null, null, accelaratorKeyPrefix + recentOpen.RecentFile[i].ToString(), new EventHandler(LoadRecentFile));
+ items[i] = new RFMItem(null, null, accelaratorKeyPrefix + recentOpen.RecentFile[i].ToString().Replace ("_", "__"), new EventHandler(LoadRecentFile));
items[i].Tag = recentOpen.RecentFile[i].ToString();
}
return items;
@@ -97,7 +97,7 @@
RPMItem[] items = new RPMItem[recentOpen.RecentProject.Count];
for (int i = 0; i < recentOpen.RecentProject.Count; ++i) {
string accelaratorKeyPrefix = i < 10 ? "&" + ((i + 1) % 10).ToString() + " " : "";
- items[i] = new RPMItem(null, null, accelaratorKeyPrefix + recentOpen.RecentProject[i].ToString(), new EventHandler(LoadRecentProject));
+ items[i] = new RPMItem(null, null, accelaratorKeyPrefix + recentOpen.RecentProject[i].ToString().Replace ("_", "__"), new EventHandler(LoadRecentProject));
items[i].Tag = recentOpen.RecentProject[i].ToString();
items[i].Description = String.Format (GettextCatalog.GetString ("load solution {0}"), recentOpen.RecentProject[i].ToString ());
}
More information about the Monodevelop-patches-list
mailing list