Author: mhutch
Date: 2007-12-06 20:32:08 -0500 (Thu, 06 Dec 2007)
New Revision: 90884
Modified:
trunk/monodevelop/main/src/addins/AspNetAddIn/ChangeLog
trunk/monodevelop/main/src/addins/AspNetAddIn/Project/AspNetAppProject.cs
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/ChangeLog
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/MonoDevelop.Deployment.Linux/DotDesktopViewWidget.cs
trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.am
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/Makefile.am
trunk/monodevelop/main/src/addins/SourceEditor2/ChangeLog
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorWidget.cs
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Diffs.cs
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Logs.cs
trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/LinkCommandEntry.cs
Log:
Update stuff to use platform service.
Modified: trunk/monodevelop/main/src/addins/AspNetAddIn/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/AspNetAddIn/ChangeLog 2007-12-07
01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/AspNetAddIn/ChangeLog 2007-12-07
01:32:08 UTC (rev 90884)
@@ -1,3 +1,8 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * Project/AspNetAppProject.cs: Use PlatformService to launch a browser
+ instead of Gnome.Url.Show.
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* gtk-gui/objects.xml, AspNetAddIn.addin.xml, AspNetAddIn.mdp,
Makefile.am:
Modified:
trunk/monodevelop/main/src/addins/AspNetAddIn/Project/AspNetAppProject.cs
===================================================================
--- trunk/monodevelop/main/src/addins/AspNetAddIn/Project/AspNetAppProject.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/AspNetAddIn/Project/AspNetAppProject.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -405,7 +405,7 @@
if (resp != null) {
//TODO: a choice of browsers
- Gnome.Url.Show (url);
+ Runtime.PlatformService.ShowUrl
(url);
break;
}
}
Modified:
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/ChangeLog
===================================================================
---
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/ChangeLog
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/ChangeLog
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,3 +1,8 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Deployment.Linux/DotDesktopViewWidget.cs: Use
+ PlatformService to get mime information instead of Gnome.Vfs directly
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Deployment.Linux.mdp, Makefile.am: Directory
reorganization.
Modified:
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/MonoDevelop.Deployment.Linux/DotDesktopViewWidget.cs
===================================================================
---
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/MonoDevelop.Deployment.Linux/DotDesktopViewWidget.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/MonoDevelop.Deployment.Linux/DotDesktopViewWidget.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -4,6 +4,7 @@
using System.Collections.Specialized;
using System.Xml;
using Gtk;
+using MonoDevelop.Core;
namespace MonoDevelop.Deployment.Linux
{
@@ -126,7 +127,7 @@
sortedmt.Sort ();
foreach (string mt in sortedmt) {
- string desc = Gnome.Vfs.Mime.GetDescription
(mt);
+ string desc =
Runtime.PlatformService.GetDescription (mt);
storeMimeTypes.AppendValues (mt, desc);
}
@@ -298,7 +299,7 @@
if (!entry.MimeTypes.Contains (mt)) {
entry.MimeTypes.Add (mt);
storeMimeTypes.SetValue (iter,
0, mt);
- storeMimeTypes.SetValue (iter,
1, Gnome.Vfs.Mime.GetDescription (mt));
+ storeMimeTypes.SetValue (iter,
1, Runtime.PlatformService.GetDescription (mt));
if (!string.IsNullOrEmpty
(oldmt))
// It is a
modification. Remove the old name.
Modified: trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.am
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.am
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.am
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,4 +1,4 @@
-ADDIN_BUILD =
$(top_builddir)/build/AddIns/MonoDevelop.GeckoWebBrowser/GeckoWebBrowser
+ADDIN_BUILD = $(top_builddir)/build/AddIns/GeckoWebBrowser
ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.GeckoWebBrowser.dll
REFS = \
@@ -18,7 +18,7 @@
gtk-gui/gui.stetic \
MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
-if ENABLE_GECKOSHARP
+if ENABLE_GECKOBROWSER
all: $(ASSEMBLY)
else
all:
@@ -28,7 +28,7 @@
mkdir -p $(ADDIN_BUILD)
$(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%)
$(build_sources) -out:$@ -target:library
-if ENABLE_GECKOSHARP
+if ENABLE_GECKOBROWSER
assemblydir = $(MD_ADDIN_DIR)/GeckoWebBrowser
assembly_DATA = $(ASSEMBLY)
endif
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,3 +1,9 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Gettext/GetTextTool.cs:
+ * MonoDevelop.Gettext/TranslationProject.cs: Do not call Gnome.Vfs
directly;
+ utilize the PlatformService to get mime information.
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Gettext.mdp, Makefile.am: Directory reorganization.
Modified:
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
===================================================================
---
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -54,8 +54,6 @@
return 0;
}
- Gnome.Vfs.Vfs.Initialize ();
-
if (file == null) {
string[] files = Directory.GetFiles (".",
"*.mds");
if (files.Length == 0) {
Modified:
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
===================================================================
---
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -243,7 +243,7 @@
if (!File.Exists (file.FilePath))
continue;
if (file.Subtype == Subtype.Code) {
- string mimeType =
Gnome.Vfs.MimeType.GetMimeTypeForUri (file.FilePath);
+ string mimeType =
Runtime.PlatformService.GetMimeTypeForUri (file.FilePath);
foreach (IFileScanner fs in
scanners) {
if (fs.CanScan (this,
catalog, file.FilePath, mimeType))
fs.UpdateCatalog (this, catalog, monitor, file.FilePath);
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,3 +1,8 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * Makefile.am: Only build the GtkCore addin if we have gnome-sharp
+ available.
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.GtkCore.mdp, lib/libsteticui.mdp, lib/libstetic.mdp,
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/Makefile.am
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/Makefile.am
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/Makefile.am
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,5 +1,8 @@
+if HAVE_GNOME_SHARP
SUBDIRS = lib
+endif
+
ADDIN_BUILD = $(top_builddir)/build/AddIns/MonoDevelop.GtkCore
ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.GtkCore.dll
@@ -79,7 +82,11 @@
svn rm -m "Update Stetic sources"
svn+ssh://mono-cvs.ximian.com/source/trunk/monodevelop/Extras/MonoDevelop.GtkCore/lib/stetic
&& \
svn cp -m "Update Stetic sources"
svn+ssh://mono-cvs.ximian.com/source/trunk/stetic
svn+ssh://mono-cvs.ximian.com/source/trunk/monodevelop/Extras/MonoDevelop.GtkCore/lib/stetic
+if HAVE_GNOME_SHARP
all: $(ASSEMBLY)
+else
+all:
+endif
$(ADDIN_BUILD)/%: $(srcdir)/lib/%
mkdir -p $(ADDIN_BUILD)
@@ -90,8 +97,10 @@
$(CSC) $(CSC_FLAGS) -debug -out:$@ -target:library \
$(build_resources:%=/resource:%) $(build_sources) $(REFS)
+if HAVE_GNOME_SHARP
assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.GtkCore
assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb
+endif
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
Modified: trunk/monodevelop/main/src/addins/SourceEditor2/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/SourceEditor2/ChangeLog 2007-12-07
01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/SourceEditor2/ChangeLog 2007-12-07
01:32:08 UTC (rev 90884)
@@ -1,3 +1,10 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs:
+ Use the PlatformService to get mime information instead of Gnome.Vfs
+ * MonoDevelop.SourceEditor.Gui/SourceEditorWidget.cs: Remove unused
+ Gnome widgets.
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* Makefile.am, MonoDevelop.SourceEditor.mdp: Moved SourceEditor2 back to
Modified:
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs
===================================================================
---
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -427,7 +427,7 @@
vfsname = vfsname.Replace ("%", "%25");
vfsname = vfsname.Replace ("#", "%23");
vfsname = vfsname.Replace ("?", "%3F");
- se.Buffer.LoadFile (fileName,
Gnome.Vfs.MimeType.GetMimeTypeForUri (vfsname), encoding);
+ se.Buffer.LoadFile (fileName,
Runtime.PlatformService.GetMimeTypeForUri (vfsname), encoding);
ContentName = fileName;
lastSaveTime = File.GetLastWriteTime (ContentName);
InitializeFormatter ();
Modified:
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorWidget.cs
===================================================================
---
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorWidget.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorWidget.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -14,7 +14,6 @@
using MonoDevelop.Ide.Commands;
using MonoDevelop.Ide.Gui;
using Stock = MonoDevelop.Core.Gui.Stock;
-using Gnome;
namespace MonoDevelop.SourceEditor.Gui
{
@@ -23,8 +22,6 @@
public SourceEditorBuffer Buffer;
public SourceEditorView View;
public SourceEditorDisplayBindingWrapper DisplayBinding;
- protected Gnome.PrintJob printJob;
- protected PrintDialog printDialog;
Dictionary<string,Gdk.Pixbuf> markers = new
Dictionary<string,Gdk.Pixbuf> ();
static Gdk.Pixbuf dragIconPixbuf;
@@ -200,84 +197,6 @@
return str.Substring (0, leftOffset) + delimiter +
str.Substring (rightOffset);
}
- /*FIXME GTKSV2
- protected void CreatePrintJob ()
- {
- if (printDialog == null || printJob == null)
- {
- PrintConfig config = PrintConfig.Default ();
- SourcePrintJob sourcePrintJob = new
SourcePrintJob (config, Buffer);
- sourcePrintJob.upFromView = View;
- sourcePrintJob.PrintHeader = true;
- sourcePrintJob.PrintFooter = true;
- sourcePrintJob.SetHeaderFormat
(GettextCatalog.GetString ("File:") + " " +
-
StrMiddleTruncate (IdeApp.Workbench.ActiveDocument.FileName, 60), null, null,
true);
- sourcePrintJob.SetFooterFormat
(GettextCatalog.GetString ("MonoDevelop"), null, GettextCatalog.GetString
("Page") + " %N/%Q", true);
- sourcePrintJob.WrapMode = WrapMode.Word;
- printJob = sourcePrintJob.Print ();
- }
- }
-
- [CommandHandler (EditorCommands.PrintDocument)]
- public void PrintDocument ()
- {
- if (printDialog == null)
- {
- CreatePrintJob ();
- printDialog = new PrintDialog (printJob,
GettextCatalog.GetString ("Print Source Code"));
- printDialog.SkipTaskbarHint = true;
- printDialog.Modal = true;
-// printDialog.IconName = "gtk-print";
- printDialog.SetPosition
(WindowPosition.CenterOnParent);
- printDialog.Gravity = Gdk.Gravity.Center;
- printDialog.TypeHint =
Gdk.WindowTypeHint.Dialog;
- printDialog.TransientFor =
IdeApp.Workbench.RootWindow;
- printDialog.KeepAbove = false;
- printDialog.Response += new ResponseHandler
(OnPrintDialogResponsed);
- printDialog.Close += new EventHandler
(OnPrintDialogClosing);
- printDialog.Run ();
- }
- }
-
- protected void OnPrintDialogClosing (object o, EventArgs args)
- {
- printDialog = null;
- }
-
- protected void OnPrintDialogResponsed (object o, ResponseArgs
args)
- {
- switch ((int)args.ResponseId)
- {
- case (int)PrintButtons.Print:
- int result = printJob.Print ();
- if (result != 0)
-
IdeApp.Services.MessageService.ShowError (GettextCatalog.GetString ("Print
operation failed."));
- goto default;
- case (int)PrintButtons.Preview:
- PrintPreviewDocument ();
- break;
- default:
- printDialog.HideAll ();
- printDialog.Destroy ();
- break;
- }
- }
-
- [CommandHandler (EditorCommands.PrintPreviewDocument)]
- public void PrintPreviewDocument ()
- {
- CreatePrintJob ();
- PrintJobPreview preview = new PrintJobPreview
(printJob, GettextCatalog.GetString ("Print Preview - Source Code"));
- preview.Modal = true;
- preview.SetPosition (WindowPosition.CenterOnParent);
- preview.Gravity = Gdk.Gravity.Center;
- if (printDialog != null)
- preview.TransientFor = printDialog;
- else
- preview.TransientFor =
IdeApp.Workbench.RootWindow;
-// preview.IconName = "gtk-print-preview";
- preview.ShowAll ();
- }*/
/* FIXME GTKSV2
[CommandHandler (EditorCommands.GotoMatchingBrace)]
public void GotoMatchingBrace ()
Modified:
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog
===================================================================
---
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,3 +1,10 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * MonoDevelop.VersionControl.Views/CellRendererDiff.cs:
+ * MonoDevelop.VersionControl.Views/Diffs.cs:
+ * MonoDevelop.VersionControl.Views/Logs.cs: Use the PlatformService to
get
+ font and mime information instead of GConf / Gnome.Vfs directly
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.VersionControl.mdp, VersionControl.addin.xml, Makefile.am:
Modified:
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs
===================================================================
---
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -3,6 +3,7 @@
using System.Collections;
using Gtk;
using Gdk;
+using MonoDevelop.Core;
namespace MonoDevelop.VersionControl.Views
{
@@ -15,7 +16,7 @@
public CellRendererDiff()
{
- font = Pango.FontDescription.FromString ((string) new
GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name"));
+ font = Pango.FontDescription.FromString
(Runtime.PlatformService.DefaultMonospaceFont);
}
public void Reset ()
Modified:
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Diffs.cs
===================================================================
---
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Diffs.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Diffs.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -4,6 +4,7 @@
using Gtk;
+using MonoDevelop.Core;
using MonoDevelop.Core.Gui;
using MonoDevelop.Core.Gui.Dialogs;
@@ -109,7 +110,7 @@
}
DiffWidget.Options opts = new DiffWidget.Options();
- opts.Font = (string) new GConf.Client ().Get
("/desktop/gnome/interface/monospace_font_name");
+ opts.Font =
Runtime.PlatformService.DefaultMonospaceFont;
opts.LeftName = "Repository";
opts.RightName = "Working Copy";
widget = new DiffWidget(diff, opts);
Modified:
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Logs.cs
===================================================================
---
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Logs.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/Logs.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -294,7 +294,7 @@
public class HistoricalFileView
{
public static void Show(string name, string file, string text) {
- string mimeType = Gnome.Vfs.MimeType.GetMimeTypeForUri
(file);
+ string mimeType =
Runtime.PlatformService.GetMimeTypeForUri (file);
if (mimeType == null || mimeType.Length == 0)
mimeType = "text/plain";
Document doc =
MonoDevelop.Ide.Gui.IdeApp.Workbench.NewDocument (name, mimeType, text);
Modified: trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog 2007-12-07
01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog 2007-12-07
01:32:08 UTC (rev 90884)
@@ -1,3 +1,8 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * WelcomePageView.cs: Use the PlatformService to get Mime information
instead
+ of Gnome.Vfs directly
+
2007-12-05 Michael Hutchinson <[EMAIL PROTECTED]>
* WelcomePageFallbackWidget.cs: Correct background rendering order.
Modified: trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -103,7 +103,7 @@
{
//Launch the Uri externally
try {
- Gnome.Url.Show (uri);
+ Runtime.PlatformService.ShowUrl (uri);
} catch (Exception) {
string msg = String.Format
(GettextCatalog.GetString ("Could not open the url {0}"), uri);
Gtk.MessageDialog md = new
Gtk.MessageDialog (null, Gtk.DialogFlags.Modal |
Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Error, Gtk.ButtonsType.Ok,
msg);
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
2007-12-07 01:30:08 UTC (rev 90883)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
2007-12-07 01:32:08 UTC (rev 90884)
@@ -1,3 +1,8 @@
+2007-12-06 Geoff Norton <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Components.Commands/LinkCommandEntry.cs: Use the new
RuntimeService
+ instead of Gnome.Url.Show.
+
2007-12-04 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* gtk-gui/generated.cs, Makefile.am, MonoDevelop.Components.mdp:
Directory
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/LinkCommandEntry.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/LinkCommandEntry.cs
2007-12-07 01:30:08 UTC (rev 90883)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/LinkCommandEntry.cs
2007-12-07 01:32:08 UTC (rev 90884)
@@ -65,7 +65,7 @@
internal void HandleActivation (object sender, EventArgs e)
{
try {
- Gnome.Url.Show (url);
+ Runtime.PlatformService.ShowUrl (url);
} catch (Exception) {
string msg = GettextCatalog.GetString ("Could
not open the url {0}", url);
Gtk.MessageDialog md = new Gtk.MessageDialog
(null, Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Error, Gtk.ButtonsType.Ok, msg);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches