~ubuntu-branches/ubuntu/vivid/banshee-community-extensions/vivid

« back to all changes in this revision

Viewing changes to src/Lyrics/Banshee.Lyrics/Banshee.Lyrics.Gui/LyricsPane.cs

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-09-18 03:35:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100918033536-b2q2ut7xkk3g90rl
Tags: 1.7.6-0ubuntu1
* New upstream release
  + Enhancements:
    - [Lyrics] Add a Copy button to the lyrics window
    - [Lyrics] Fix up the label in LyricsPane
    - [Lyrics] Use Banshee.WebBrowser instead of webkit-sharp
  + Bugs Fixed:
    - [build] Bring gnome-doc-utils autofoo into the tree
    - [Lyrics] Detect a false positive from lyricsplugin.com
    - [Lyrics] Fixed LyricsWiki source
    - [U1MS] Set a TypeUniqueId for the source (bgo#626965)
* Change section from gnome to sound
* Imported Upstream version 1.7.6
* Drop webkit# build-dep
* Bump Banshee build-dep version and loosen binary-dep version
* Switch banshee dep with banshee-extensions-common in metapackage

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
using Mono.Addins;
32
32
 
 
33
using Banshee.Collection;
33
34
using Banshee.ContextPane;
34
35
 
35
36
namespace Banshee.Lyrics.Gui
42
43
 
43
44
        private ContextPage context_page;
44
45
 
45
 
        private string track_title;
46
 
        private string track_artist;
47
 
 
48
46
        public LyricsPane (ContextPage context_page)
49
47
        {
50
48
            this.context_page = context_page;
51
49
            InitComponents ();
52
50
        }
53
51
 
54
 
        public string TrackArtist {
55
 
            get { return track_artist; }
56
 
            set {track_artist = value; }
57
 
        }
58
 
 
59
 
        public string TrackTitle {
60
 
            get { return track_title; }
61
 
            set { track_title = value; UpdateLabel ();}
62
 
        }
63
 
 
 
52
        public TrackInfo Track { get; set; }
64
53
 
65
54
        public void InitComponents ()
66
55
        {
104
93
 
105
94
        private void UpdateLabel ()
106
95
        {
107
 
            if (!string.IsNullOrEmpty (track_title)) {
108
 
                label.Text = "<b>" + track_title + AddinManager.CurrentLocalizer.GetString (" lyric") + "</b>";
 
96
            if (Track != null) {
 
97
                label.Text = String.Format ("<b>{0}</b>", Track.DisplayTrackTitle);
109
98
                label.UseMarkup = true;
110
99
            }
111
100
            this.ShowAll ();