Esempio n. 1
0
        public SimilarArtists(ArtistInfo main)
        {
            this.main = main;

            page_navigator = new PageNavigator <SimilarArtist> (similar_artists);

            VBox page_box = new VBox (false, 10);
            page_box.PackStart (box, false, false, 0);
            page_box.PackStart (page_navigator, false, false, 0);

            similar_artists.AmountToShow = 5;
            this.DisplayWidget = page_box;

            page_navigator.PageChanged += page_changed;
        }
Esempio n. 2
0
        public TopTracks(ArtistInfo main)
        {
            this.main = main;

            page_navigator = new PageNavigator <TopTrack> (top_tracks);

            VBox page_box = new VBox (false, 10);
            page_box.PackStart (box, false, false, 0);
            page_box.PackStart (page_navigator, false, false, 0);

            top_tracks.AmountToShow = 10;
            this.DisplayWidget = page_box;

            page_navigator.PageChanged += page_changed;
        }
Esempio n. 3
0
        public AlbumDetails(ArtistInfo main)
        {
            this.main = main;
            this.DisplayWidget = box;

            title_label.Yalign = 1;
            title_label.Xalign = 0;
            release_label.Yalign = 0;
            release_label.Xalign = 0;

            VBox title = new VBox (false, 0);
            title.PackStart (title_label, true, true, 0);
            title.PackStart (release_label, true, true, 0);

            HBox header = new HBox (false, 10);
            header.PackStart (new BorderWidget (album_image), false, false, 0);
            header.PackStart (title, false, false, 0);

            box.PackStart (header, false, false, 0);
            box.PackStart (tracks_box, false, false, 0);
        }