4 namespace Search
.Tiles
{
6 public abstract class TileFlat
: Tile
{
8 protected Gtk
.Label Subject
, From
, Date
;
10 protected TileFlat (Beagle
.Hit hit
, Beagle
.Query query
) : base (hit
, query
)
12 Subject
= WidgetFu
.NewLabel ();
13 WidgetFu
.EllipsizeLabel (Subject
, 40);
14 HBox
.PackStart (Subject
, true, true, 3);
16 From
= WidgetFu
.NewLabel ();
17 From
.UseMarkup
= true;
18 WidgetFu
.EllipsizeLabel (From
, 20);
19 HBox
.PackStart (From
, false, false, 3);
21 Date
= WidgetFu
.NewLabel ();
22 HBox
.PackStart (Date
, false, false, 3);
27 protected override void OnRealized ()
31 if ((Icon
.StorageType
== ImageType
.Empty
|| Icon
.StorageType
== ImageType
.Pixbuf
) &&
36 public Gtk
.Label SubjectLabel
{
37 get { return Subject; }
40 public Gtk
.Label FromLabel
{
44 public Gtk
.Label DateLabel
{