[/musicextras/musicextras: changeset 34 Zachary P. Landau **20041012020836 - Added displaying of album year - Added displaying of track listings if title is not specified ] { hunk ./data/musicextras/musicextras.glade 45 - + hunk ./data/musicextras/musicextras.glade 67 - GTK_JUSTIFY_LEFT + GTK_JUSTIFY_CENTER hunk ./data/musicextras/musicextras.glade 88 - + hunk ./data/musicextras/musicextras.glade 110 - GTK_JUSTIFY_LEFT + GTK_JUSTIFY_CENTER hunk ./lib/musicextras/gui/gtkgui.rb 73 + @glade.get_widget('album_frame').label = @album if album + @glade.get_widget('artist_frame').label = @artist if artist + hunk ./lib/musicextras/gui/gtkgui.rb 83 + def set_tracks(tracks) + @tracks = tracks + end + hunk ./lib/musicextras/gui/gtkgui.rb 102 + def set_album_year(year) + @glade.get_widget('album_frame').label += " (#{year})" + end + hunk ./lib/musicextras/gui/gtkgui.rb 142 + end + + def done_parsing + if @title == '' && defined? @tracks + @lyrics_text.buffer.set_text(@tracks) + end hunk ./lib/musicextras/guicontrol.rb 123 + @gui.done_parsing hunk ./lib/musicextras/guicontrol.rb 194 + when 'album_year' + @gui.set_album_year(data) + when 'album_tracks' + @gui.set_tracks(data) }