예제 #1
0
        /// <summary>
        /// Let the treeview begin sorting.
        /// </summary>
        public void ThawTree()
        {
            thaw = true;
            if (filter_func == null)
                filter_func = Global.Core.Library.FolderTree.FilterMedia;
            filter.VisibleFunc = filterMedia;
            filter.Refilter ();
            store.SetSortFunc (0, sort_title);
            store.SetSortFunc (1, sort_artist);
            store.SetSortFunc (2, sort_album);

            int i = 0;
            foreach (TreeViewColumn column in this.Columns)
            {
                if (column.SortIndicator)
                    store.SetSortColumnId (i, column.SortOrder);
                i++;
            }
        }
예제 #2
0
 /// <summary>
 /// Sets the filter for the media store.
 /// </summary>
 public void SetFilter(MediaFilterFunc func)
 {
     filter_func = func;
 }