Author: aolk
Date: 2006-07-22 03:13:40 -0400 (Sat, 22 Jul 2006)
New Revision: 62894
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
Log:
2006-07-22 Alexander Olk <[EMAIL PROTECTED]>
* FileDialog.cs: Enable the BackButton when dirstack has one element.
Added some small optimizations.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-07-22 06:34:17 UTC (rev 62893)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-07-22 07:13:40 UTC (rev 62894)
@@ -1,3 +1,8 @@
+2006-07-22 Alexander Olk <[EMAIL PROTECTED]>
+
+ * FileDialog.cs: Enable the BackButton when dirstack has one element.
+ Added some small optimizations.
+
2006-07-21 Matt Hargett <[EMAIL PROTECTED]>
* Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-07-22 06:34:17 UTC (rev 62893)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-07-22 07:13:40 UTC (rev 62894)
@@ -322,6 +322,7 @@
form.SizeGripStyle = SizeGripStyle.Show;
form.MaximizeBox = true;
+ form.MinimizeBox = true;
form.FormBorderStyle = FormBorderStyle.Sizable;
form.MinimumSize = new Size (554, 405);
@@ -2307,7 +2308,7 @@
} else
if (o is ToolBarButton) {
ToolBarButton t = o as ToolBarButton;
- t.Enabled = (directoryStack.Count > 1);
+ t.Enabled = (directoryStack.Count > 0);
}
}
}
@@ -3101,8 +3102,17 @@
private FSEntry mycomputerFSEntry = null;
private FSEntry mynetworkFSEntry = null;
+ private string personal_folder;
+ private string recently_used_path;
+ private string full_kde_recent_document_dir;
+
public UnixFileSystem ()
{
+ personal_folder = ThemeEngine.Current.Places
(UIIcon.PlacesPersonal);
+ recently_used_path = Path.Combine (personal_folder,
".recently-used");
+
+ full_kde_recent_document_dir = personal_folder +
"/.kde/share/apps/RecentDocuments";
+
desktopFSEntry = new FSEntry ();
desktopFSEntry.Attributes = FileAttributes.Directory;
@@ -3167,9 +3177,6 @@
public override void WriteRecentlyUsedFiles (string fileToAdd)
{
- string personal_folder = ThemeEngine.Current.Places
(UIIcon.PlacesPersonal);
- string recently_used_path = Path.Combine
(personal_folder, ".recently-used");
-
if (File.Exists (recently_used_path) && new FileInfo
(recently_used_path).Length > 0) {
XmlDocument xml_doc = new XmlDocument ();
xml_doc.Load (recently_used_path);
@@ -3285,8 +3292,6 @@
public override ArrayList GetRecentlyUsedFiles ()
{
// check for GNOME and KDE
- string personal_folder = ThemeEngine.Current.Places
(UIIcon.PlacesPersonal);
- string recently_used_path = Path.Combine
(personal_folder, ".recently-used");
ArrayList files_al = new ArrayList ();
@@ -3310,8 +3315,6 @@
}
// KDE
- string full_kde_recent_document_dir = personal_folder +
"/.kde/share/apps/RecentDocuments";
-
if (Directory.Exists (full_kde_recent_document_dir)) {
string[] files = Directory.GetFiles
(full_kde_recent_document_dir, "*.desktop");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches