[Mono-bugs] [Bug 656192] New: My Network Places Theme.cs
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Nov 28 19:34:12 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=656192
https://bugzilla.novell.com/show_bug.cgi?id=656192#c0
Summary: My Network Places Theme.cs
Classification: Mono
Product: Mono: Class Libraries
Version: 2.8.x
Platform: x86
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: xocotl at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12
A very simple patch for Theme.cs, as My Network Places has a folder in .Net
4.0:
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
index e4154e7..e898f76 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
@@ -576,7 +576,9 @@ namespace System.Windows.Forms
else return value;
}
+#if !NET_4_0
[MonoInternalNote ("Figure out where to point for My Network Places")]
+#endif
public virtual string Places(UIIcon index) {
switch (index) {
case UIIcon.PlacesRecentDocuments: {
@@ -601,7 +603,11 @@ namespace System.Windows.Forms
case UIIcon.PlacesMyNetwork: {
// Default = "My Network Places"
+#if NET_4_0
+ return
Environment.GetFolderPath(Environment.SpecialFolder.NetworkShortcuts);
+#else
return "/tmp";
+#endif
}
default: {
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list