public AlbumBox(Album album, Lyrics main) : base(false, 0) { this.album = album; this.main = main; Label name = new Label (); Label year = new Label (); name.Markup = "<b>" + Utils.ParseMarkup (album.Name) + "</b>"; year.Markup = "<small>" + album.Year + "</small>"; name.Ellipsize = Pango.EllipsizeMode.End; name.Xalign = 0; year.Xalign = 0; VBox header = new VBox (false, 0); header.PackStart (name, false, false, 0); header.PackStart (year, false, false, 0); header.BorderWidth = 4; box.Add (header); this.PackStart (box, false, false, 0); //events box.Realized += realized; box.EnterNotifyEvent += mouse_enter; box.LeaveNotifyEvent += mouse_leave; box.ButtonReleaseEvent += mouse_clicked; }
public SearchArtist(Lyrics main) { this.main = main; this.DisplayWidget = box; search_title.Xalign = 0; box.PackStart (search_title, false, false, 0); box.PackStart (album_box, false, false, 0); }