Exemple #1
0
        public void add(Audio.Playlist play)
        {
            var view = new PlaylistViewWindow(play, player);
            var tab  = new PlaylistViewTab(play.Name, view, this);

            AppendPage(view, tab);
            ShowAll();
        }
Exemple #2
0
        public PlaylistViewTab(string label, PlaylistViewWindow v, PlaylistViewContainer p)
        {
            parent = p;
            name   = new Label(label);
            Image image = new Image(Gtk.Stock.Close);

            image.IconSize = 16;
            close          = new Button("x");
            close.Clicked += CloseTabHandler;
            close.Relief   = ReliefStyle.None;

            view = v;

            this.PackStart(name, false, false, 0);
            this.PackStart(close, false, false, 0);
            ShowAll();
        }