~zeitgeist/plank/zeitgeist

« back to all changes in this revision

Viewing changes to lib/DockController.vala

  • Committer: Rico Tzschichholz
  • Date: 2015-03-16 17:20:24 UTC
  • Revision ID: ricotz@ubuntu.com-20150316172024-vk7n50o5vfvqkcgy
controller: Rename property Items to VisibleItems

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                public DockWindow window { get; protected set; }
44
44
                
45
45
                ApplicationDockItemProvider? default_provider;
46
 
                Gee.ArrayList<unowned DockItem> items;
 
46
                Gee.ArrayList<unowned DockItem> visible_items;
47
47
                
48
48
                /**
49
49
                 * Ordered list of all visible items on this dock
50
50
                 */
51
 
                public Gee.ArrayList<unowned DockItem> Items {
 
51
                public Gee.ArrayList<unowned DockItem> VisibleItems {
52
52
                        get {
53
 
                                return items;
 
53
                                return visible_items;
54
54
                        }
55
55
                }
56
56
                
75
75
                        launchers_folder = config_folder.get_child ("launchers");
76
76
                        Factory.item_factory.launchers_dir = launchers_folder;
77
77
                        
78
 
                        items = new Gee.ArrayList<unowned DockItem> ();
 
78
                        visible_items = new Gee.ArrayList<unowned DockItem> ();
79
79
                        
80
80
                        prefs.notify["PinnedOnly"].connect (update_default_provider);
81
81
                        
90
90
                {
91
91
                        prefs.notify["PinnedOnly"].disconnect (update_default_provider);
92
92
                        
93
 
                        items.clear ();
 
93
                        visible_items.clear ();
94
94
                }
95
95
                
96
96
                /**
201
201
                        
202
202
                        Logger.verbose ("DockController.update_visible_items ()");
203
203
                        
204
 
                        items.clear ();
 
204
                        visible_items.clear ();
205
205
                        
206
206
                        var current_pos = 0;
207
207
                        foreach (var element in visible_elements) {
214
214
                                                continue;
215
215
                                        if (item.Position != current_pos)
216
216
                                                item.Position = current_pos;
217
 
                                        items.add (item);
 
217
                                        visible_items.add (item);
218
218
                                        current_pos++;
219
219
                                }
220
220
                        }