~pimvullers/beat-box/fix-983560

« back to all changes in this revision

Viewing changes to src/Views/ViewWrapper.vala

  • Committer: sgringwe at gmail
  • Date: 2012-04-17 03:25:28 UTC
  • Revision ID: sgringwe@gmail.com-20120417032528-ny8hy1j2f4gh29yg
Shuffle is working very well now

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        // ALL the media. Data source.
102
102
        protected Mutex in_update;
103
103
        public int media_count { get { return (list_view != null) ? (int)list_view.get_table().size() : 0; } }
104
 
        protected int old_sort_col = 0;
105
 
        protected Gtk.SortType old_sort_dir = Gtk.SortType.ASCENDING;
106
104
        protected string last_search = "";
107
105
        public string artist_filter = "";
108
106
        public string album_filter = "";
218
216
                        view_scroll.add(list_view);
219
217
                        view_container.append_page (view_scroll);
220
218
                        
 
219
                        // Set sort data from saved session
 
220
                        list_view.set_sort_column_id(tvs.sort_column_id, tvs.sort_direction);
 
221
                        
221
222
                        // Populate views
222
223
                        set_media(the_medias);
223
 
                        
224
 
                        // Set sort data from saved session
225
 
                        list_view.set_sort_column_id(tvs.sort_column_id, tvs.sort_direction);
226
224
                }
227
225
 
228
226
                lm.medias_updated.connect (medias_updated);
325
323
                if (!have_list_view)
326
324
                        return;
327
325
                
328
 
                list_view.set_as_current_list(1);
 
326
                lm.media_info.media = null;
 
327
                list_view.set_as_current_list();
329
328
                lm.playMedia (lm.mediaFromCurrentIndex(0), false);
330
329
 
331
330
                if(!lm.playing)