2 using System
.Diagnostics
;
6 namespace Search
.Tiles
{
8 public class ArchivedFileActivator
: TileActivator
{
10 public ArchivedFileActivator () : base ()
12 AddSupportedFlavor (new HitFlavor (null, "File", null));
15 public override Tile
BuildTile (Beagle
.Hit hit
, Beagle
.Query query
)
17 return new TileArchivedFile (hit
, query
);
20 public override bool Validate (Beagle
.Hit hit
)
22 if (! base.Validate (hit
))
25 string str
= hit
.GetFirstProperty ("fixme:inside_archive");
26 if (hit
.ParentUri
== null || str
== null || str
== "false")
35 public class TileArchivedFile
: TileFile
{
37 public TileArchivedFile (Beagle
.Hit hit
, Beagle
.Query query
) : base (hit
, query
)
39 Description
= String
.Format (Catalog
.GetString ("Inside archive {0}"), GetTitle (hit
, true));
42 protected override void LoadIcon (Gtk
.Image image
, int size
)
44 // FIXME: Emblemize some sort of archive icon on top of
46 base.LoadIcon (image
, size
);