~ubuntu-branches/ubuntu/jaunty/beagle/jaunty-security

« back to all changes in this revision

Viewing changes to search/Tiles/TileFlat.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-04 00:31:32 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20080504003132-2tkm5o8moo5952ri
Tags: 0.3.7-2ubuntu1
 * Merge from Debian unstable. (LP: #225746) Remaining Ubuntu changes:
  - debian/control:
    + Rename ice{weasel,dove}-beagle to {mozilla,thunderbird}-beagle and
      and update the dependencies accordingly.
    + Change Maintainer to Ubuntu Mono Team.
  - debian/rules:
    + Install the mozilla-beagle and thunderbird-beagle extensions.
  - ice{dove,weasel}.dirs:
    + Renamed to {mozilla,thunderbird}-beagle.dirs.
    + Fixed paths to point to usr/lib/{firefox,thunderbird}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
using Gtk;
3
 
 
4
 
namespace Search.Tiles {
5
 
 
6
 
        public abstract class TileFlat : Tile {
7
 
 
8
 
                protected Gtk.Label Subject, From, Date;
9
 
 
10
 
                protected TileFlat (Beagle.Hit hit, Beagle.Query query) : base (hit, query)
11
 
                {
12
 
                        Subject = WidgetFu.NewLabel ();
13
 
                        WidgetFu.EllipsizeLabel (Subject, 40);
14
 
                        HBox.PackStart (Subject, true, true, 3);
15
 
 
16
 
                        From = WidgetFu.NewLabel ();
17
 
                        From.UseMarkup = true;
18
 
                        WidgetFu.EllipsizeLabel (From, 20);
19
 
                        HBox.PackStart (From, false, false, 3);
20
 
 
21
 
                        Date = WidgetFu.NewLabel ();
22
 
                        HBox.PackStart (Date, false, false, 3);
23
 
 
24
 
                        HBox.ShowAll ();
25
 
                }
26
 
 
27
 
                protected override void OnRealized ()
28
 
                {
29
 
                        base.OnRealized ();
30
 
 
31
 
                        if ((Icon.StorageType == ImageType.Empty || Icon.StorageType == ImageType.Pixbuf) &&
32
 
                            Icon.Pixbuf == null)
33
 
                                LoadIcon (Icon, 16);
34
 
                }
35
 
 
36
 
                public Gtk.Label SubjectLabel {
37
 
                        get { return Subject; }
38
 
                }
39
 
 
40
 
                public Gtk.Label FromLabel {
41
 
                        get { return From; }
42
 
                }
43
 
 
44
 
                public Gtk.Label DateLabel {
45
 
                        get { return Date; }
46
 
                }
47
 
        }
48
 
}