~xapantu/beat-box/plugins

« back to all changes in this revision

Viewing changes to src/Views/AlbumView/AlbumIconView.vala

  • Committer: sgringwe at gmail
  • Date: 2012-01-23 16:21:15 UTC
  • Revision ID: sgringwe@gmail.com-20120123162115-485xywbpitosrx6d
applied nielsvavonds fix for bug90007

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                icons.item_padding = 0;
68
68
                icons.spacing = 2;
69
69
                icons.margin = 20;
70
 
                add_with_viewport(icons);
 
70
                add(icons);
71
71
                
72
72
                //add(v);
73
73
                
239
239
         * shown
240
240
        */
241
241
        public void populate_view() {
 
242
                
 
243
                icons.freeze_child_notify();
 
244
                icons.set_model(null);
 
245
                
242
246
                _showing_medias.clear();
243
 
                
244
247
        var to_append = new LinkedList<Media>();
245
248
                foreach(int i in _show_next) {
246
249
                        Media s = lm.media_from_id(i);
265
268
                model.appendMedias(to_append, false);
266
269
                model.set_sort_column_id(0, SortType.ASCENDING);
267
270
                icons.set_model(model);
 
271
                icons.thaw_child_notify();
268
272
                
269
 
                icons.grab_focus();
 
273
                //icons.realize();
 
274
                //realize();
270
275
                
271
276
                /* this is required to make the iconview initially scrollable */
272
277
                if(to_append.size > 0) {