~ubuntu-branches/debian/jessie/banshee-community-extensions/jessie

« 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: 2011-05-05 06:59:58 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110505065958-ffa74rsoxw05ir36
Tags: 2.0.1-1
* [c02b8fd] Move over to bz2 in debian/watch
* [536b6d6] New upstream bugfix release:
  + ClutterFlow: Fix NRE crash (bgo#647134)
  + Karaoke: add an gst_init() call to make sure gstreamer is working
  + Karaoke: fix NRE on dispose if audiokaraoke was not found
  + LastfmFingerprint: Don't strdup strings
  + LastfmFingerprint: Fix empty name exception (bgo#648168, LP: #765420)
  + Lirc: Drop liblirc_client.so moduleref (LP: #773686)
  + LiveRadio: Re-enable ShoutCast with request structure from
    RadioStationFetcher
  + Lyrics: Always update pane title when track changes (bgo#647108)
  + RadioStationFetcher: Updated the shoutcast plugin to fix the IP address
  + ZeitgeistDataprovider: Register dataprovider in DataSource
    Registry (LP: #691842)
  + ZeitgeistDataprovider: Differenciate between ScheduledActivity and
    UserActivity (LP: #748120)
* [2eab2a8] Drop useless libtool and a files from binaries (Closes: #621270)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            InitComponents ();
50
50
        }
51
51
 
52
 
        public TrackInfo Track { get; set; }
53
 
 
54
52
        public void InitComponents ()
55
53
        {
56
54
            this.browser = new LyricsBrowser ();
86
84
        {
87
85
            this.browser.LoadString (o, args);
88
86
 
89
 
            UpdateLabel ();
90
 
 
91
87
            context_page.SetState (Banshee.ContextPane.ContextState.Loaded);
92
88
        }
93
89
 
94
 
        private void UpdateLabel ()
 
90
        public void UpdateLabel (string track_title)
95
91
        {
96
 
            if (Track != null) {
97
 
                label.Text = String.Format ("<b>{0}</b>", Track.DisplayTrackTitle);
98
 
                label.UseMarkup = true;
99
 
            }
 
92
            label.Markup = String.Format ("<b>{0}</b>", GLib.Markup.EscapeText (track_title));
 
93
            
100
94
            this.ShowAll ();
101
95
        }
102
96
    }