~jeremywootten/pantheon-files/fix-backspace-in-columnv-view

« back to all changes in this revision

Viewing changes to src/View/Miller.vala

  • Committer: jeremy at elementaryos
  • Date: 2016-04-30 11:35:37 UTC
  • Revision ID: jeremy@elementaryos.org-20160430113537-96jzduh3u2vq39ic
Close slots before destroying their container in Miller View to silence terminal warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
            if (slot_list.length () <= 0)
108
108
                return;
109
109
 
110
 
            /* destroy the nested slots */
111
 
            ((Marlin.View.Slot)(slot)).colpane.@foreach ((w) => {
112
 
                    w.destroy ();
113
 
            });
114
 
 
115
110
            uint n = slot.slot_number;
116
111
 
117
112
            slot_list.@foreach ((s) => {
121
116
                }
122
117
            });
123
118
 
 
119
            ((Marlin.View.Slot)(slot)).colpane.@foreach ((w) => {
 
120
                w.destroy ();
 
121
            });
 
122
 
124
123
            slot_list.nth (n).next = null;
125
124
            calculate_total_width ();
126
125
            current_slot = slot;