mail-archives/monodevelop-patches-list/2004-March/000723.html

201 строка
8.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1118 - in trunk/MonoDevelop: . samples/VFS src/Main/Base/Gui/BrowserDisplayBinding src/Main/Base/Gui/Dialogs/ReferenceDialog src/Main/Base/Services/File
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1118%20-%20in%20trunk/MonoDevelop%3A%20.%20samples/VFS%20src/Main/Base/Gui/BrowserDisplayBinding%20src/Main/Base/Gui/Dialogs/ReferenceDialog%20src/Main/Base/Services/File&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000722.html">
<LINK REL="Next" HREF="000724.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1118 - in trunk/MonoDevelop: . samples/VFS src/Main/Base/Gui/BrowserDisplayBinding src/Main/Base/Gui/Dialogs/ReferenceDialog src/Main/Base/Services/File</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1118%20-%20in%20trunk/MonoDevelop%3A%20.%20samples/VFS%20src/Main/Base/Gui/BrowserDisplayBinding%20src/Main/Base/Gui/Dialogs/ReferenceDialog%20src/Main/Base/Services/File&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1118 - in trunk/MonoDevelop: . samples/VFS src/Main/Base/Gui/BrowserDisplayBinding src/Main/Base/Gui/Dialogs/ReferenceDialog src/Main/Base/Services/File">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Fri Mar 5 14:39:28 EST 2004</I>
<P><UL>
<LI>Previous message: <A HREF="000722.html">[Monodevelop-patches-list] r1117 - in branches/MonoDevelop-playground: . src/Plugins src/Plugins/Content src/Plugins/Editor src/Plugins/Node
</A></li>
<LI>Next message: <A HREF="000724.html">[Monodevelop-patches-list] r1119 - in trunk/MonoDevelop: . data/resources/glade src/AddIns/DisplayBindings/SourceEditor/Gui/Dialogs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#723">[ date ]</a>
<a href="thread.html#723">[ thread ]</a>
<a href="subject.html#723">[ subject ]</a>
<a href="author.html#723">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: jluke
Date: 2004-03-05 14:39:28 -0500 (Fri, 05 Mar 2004)
New Revision: 1118
Modified:
trunk/MonoDevelop/ChangeLog
trunk/MonoDevelop/samples/VFS/test.cs
trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs
trunk/MonoDevelop/src/Main/Base/Services/File/FdoRecentFiles.cs
trunk/MonoDevelop/src/Main/Base/Services/File/RecentItem.cs
Log:
updates and apply patch for bug#55192
Modified: trunk/MonoDevelop/ChangeLog
===================================================================
--- trunk/MonoDevelop/ChangeLog 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/ChangeLog 2004-03-05 19:39:28 UTC (rev 1118)
@@ -1,3 +1,9 @@
+2004-03-05 John Luke &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">jluke at cfl.rr.com</A>&gt;
+
+ * src/Main/Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs:
+ apply patch from <A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">djj734 at mail.usask.ca</A> (Doug) to fix adding a .NET
+ assembly reference by using GetFullPath, bug #55192
+
2004-03-05 Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">mkestner at ximian.com</A>&gt;
* Main/Base/Services/DebuggingService.cs : add StepInto and
Modified: trunk/MonoDevelop/samples/VFS/test.cs
===================================================================
--- trunk/MonoDevelop/samples/VFS/test.cs 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/samples/VFS/test.cs 2004-03-05 19:39:28 UTC (rev 1118)
@@ -1,6 +1,6 @@
using System;
using System.IO;
-using MonoDevelop.GuiUtils;
+using MonoDevelop.Gui.Utils;
class T
{
@@ -11,7 +11,6 @@
string test_file = Path.Combine (Environment.CurrentDirectory, &quot;test.cs&quot;);
if (File.Exists (test_file))
{
-
string mt = Vfs.GetMimeType (test_file);
Console.WriteLine (Vfs.IsKnownType (mt));
string icon = Vfs.GetIcon (mt);
Modified: trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs 2004-03-05 19:39:28 UTC (rev 1118)
@@ -217,6 +217,7 @@
mainbox.PackStart (catcher);
status = new Statusbar ();
+ status.HasResizeGrip = false;
mainbox.PackStart (status, false, true, 0);
this.Add (mainbox);
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs 2004-03-05 19:39:28 UTC (rev 1118)
@@ -50,7 +50,7 @@
foreach (string file in selectedFiles) {
bool isAssembly = true;
try {
- System.Reflection.AssemblyName.GetAssemblyName(System.IO.Path.GetFileName(file));
+ System.Reflection.AssemblyName.GetAssemblyName(System.IO.Path.GetFullPath (file));
} catch (Exception assemblyExcep) {
isAssembly = false;
}
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/FdoRecentFiles.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/FdoRecentFiles.cs 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/FdoRecentFiles.cs 2004-03-05 19:39:28 UTC (rev 1118)
@@ -98,28 +98,30 @@
}
}
+ // new entries seem to go on top
+ // but it is not explicitly stated as so
public void AddFile (string file_uri)
{
// uri must be unique
// or just update timestamp and group
+ RecentItem ri = new RecentItem (file_uri);
}
public void AddProject (string file_uri)
{
// uri must be unique
// or just update timestamp and group
+ RecentItem ri = new RecentItem (file_uri);
}
// spec doesn't mention removal
public void ClearFiles ()
{
-
}
// spec doesn't mention removal
public void ClearProjects ()
{
-
}
}
}
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/RecentItem.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/RecentItem.cs 2004-03-05 19:11:03 UTC (rev 1117)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/RecentItem.cs 2004-03-05 19:39:28 UTC (rev 1118)
@@ -18,6 +18,7 @@
private string mime;
// the number of seconds sinced the Epoch when the item was added to the list.
private string timestamp;
+ private readonly DateTime epoch = new DateTime (1970, 1, 1, 0, 0, 0, 0);
// may need to change to allow for &gt; 1
// lets wait til it's needed though
private string group;
@@ -25,11 +26,11 @@
// these 3 are required
public RecentItem (string uri)
{
+ // TODO: uri sanity check
this.uri = uri;
this.mime = Vfs.GetMimeType (uri);
- // FIXME 00:00:00 UTC on January 1, 1970 (Unix Epoch)
- // Now - Epoch in seconds
- this.timestamp = DateTime.Now.ToString ();
+ DateTime now = DateTime.Now.ToUniversalTime ();
+ this.timestamp = ((int) (now - epoch).TotalSeconds).ToString ();
}
public string Mime
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000722.html">[Monodevelop-patches-list] r1117 - in branches/MonoDevelop-playground: . src/Plugins src/Plugins/Content src/Plugins/Editor src/Plugins/Node
</A></li>
<LI>Next message: <A HREF="000724.html">[Monodevelop-patches-list] r1119 - in trunk/MonoDevelop: . data/resources/glade src/AddIns/DisplayBindings/SourceEditor/Gui/Dialogs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#723">[ date ]</a>
<a href="thread.html#723">[ thread ]</a>
<a href="subject.html#723">[ subject ]</a>
<a href="author.html#723">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>