Default File Open action in gnome
- From: Kevin Kubasik <kevin kubasik net>
- To: Dashboard mailing list <dashboard-hackers gnome org>
- Subject: Default File Open action in gnome
- Date: Thu, 15 Dec 2005 18:17:06 -0500
A minuscule hack to fall back onto OpenFromMime() should Open() not be
overridden.
-Kevin Kubasik
? src/glue/.deps
? src/glue/.libs
? src/glue/ephy-spinner.lo
? src/glue/libsearchglue.la
? src/glue/search-entry.lo
? src/glue/search.lo
Index: src/Tiles/Tile.cs
===================================================================
RCS file: /cvs/gnome/holmes/src/Tiles/Tile.cs,v
retrieving revision 1.8
diff -u -r1.8 Tile.cs
--- src/Tiles/Tile.cs 14 Dec 2005 20:26:43 -0000 1.8
+++ src/Tiles/Tile.cs 15 Dec 2005 21:45:49 -0000
@@ -264,6 +264,11 @@
public virtual void Open ()
{
System.Console.WriteLine ("Warning: Open method not implemented for this tile type");
+ System.Console.WriteLine (hit.Type);
+ if(hit.Type == "File"){
+ System.Console.WriteLine ("Attempting to open file using MimeType");
+ OpenFromMime (hit,"gnome-open",null,false);
+ }
}
protected void OpenFromMime (Hit hit)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]