Codebase list gnome-shell-extensions / debian/3.21.91-1kali1
Sync with Debian. Remaining changes: * Sync with Debian. Remaining changes: - apps-menu with multiple levels Sophie Brun 7 years ago
2 changed file(s) with 18 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 gnome-shell-extensions (3.21.91-1kali1) kali-dev; urgency=medium
1
2 * Sync with Debian. Remaining changes:
3 - apps-menu with multiple levels
4
5 -- Sophie Brun <[email protected]> Wed, 14 Sep 2016 15:30:59 +0200
6
07 gnome-shell-extensions (3.21.91-1) unstable; urgency=medium
18
29 * New upstream beta release.
204204 let iter = dir.iter();
205205 let nextType;
206206 while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
207 @@ -404,12 +534,23 @@ const ApplicationsButton = new Lang.Clas
208 continue;
209 }
207 @@ -406,12 +536,24 @@ const ApplicationsButton = new Lang.Clas
210208 let app = appSys.lookup_app(id);
209 if (!app)
210 app = new Shell.App({ app_info: entry.get_app_info() });
211211 - if (app.get_app_info().should_show())
212212 - this.applicationsByCategory[categoryId].push(app);
213213 + if (app.get_app_info().should_show()) {
214214 + let menu_id = dir.get_menu_id();
215215 + this.applicationsByCategory[menu_id].push(app);
216 + }
216 + }
217217 } else if (nextType == GMenu.TreeItemType.DIRECTORY) {
218218 let subdir = iter.get_directory();
219219 - if (!subdir.get_is_nodisplay())
229229 + parentCategory.menu.addMenuItem(categoryMenuItem);
230230 + }
231231 + }
232 +
232233 }
233234 }
234235 },
235 @@ -430,8 +571,8 @@ const ApplicationsButton = new Lang.Clas
236 @@ -432,8 +574,8 @@ const ApplicationsButton = new Lang.Clas
236237 },
237238
238239 scrollToCatButton: function(button) {
243244 let currentScrollValue = catsScrollBoxAdj.get_value();
244245 let boxHeight = catsScrollBoxAlloc.y2 - catsScrollBoxAlloc.y1;
245246 let buttonAlloc = button.actor.get_allocation_box();
246 @@ -445,10 +586,16 @@ const ApplicationsButton = new Lang.Clas
247 @@ -447,10 +589,16 @@ const ApplicationsButton = new Lang.Clas
247248 },
248249
249250 _createLayout: function() {
262263 this.applicationsScrollBox = new St.ScrollView({ x_fill: true, y_fill: false,
263264 y_align: St.Align.START,
264265 style_class: 'apps-menu vfade' });
265 @@ -460,41 +607,55 @@ const ApplicationsButton = new Lang.Clas
266 @@ -462,41 +610,55 @@ const ApplicationsButton = new Lang.Clas
266267 vscroll.connect('scroll-stop', Lang.bind(this, function() {
267268 this.menu.passEvents = false;
268269 }));
343344
344345 //Load categories
345346 this.applicationsByCategory = {};
346 @@ -502,7 +663,7 @@ const ApplicationsButton = new Lang.Clas
347 @@ -504,7 +666,7 @@ const ApplicationsButton = new Lang.Clas
347348 tree.load_sync();
348349 let root = tree.get_root_directory();
349350 let categoryMenuItem = new CategoryMenuItem(this, null);
352353 let iter = root.iter();
353354 let nextType;
354355 while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
355 @@ -511,10 +672,12 @@ const ApplicationsButton = new Lang.Clas
356 @@ -513,10 +675,12 @@ const ApplicationsButton = new Lang.Clas
356357 if (!dir.get_is_nodisplay()) {
357358 let categoryId = dir.get_menu_id();
358359 this.applicationsByCategory[categoryId] = [];
369370 }
370371 }
371372 }
372 @@ -523,8 +686,9 @@ const ApplicationsButton = new Lang.Clas
373 @@ -525,8 +689,9 @@ const ApplicationsButton = new Lang.Clas
373374 //Load applications
374375 this._displayButtons(this._listApplications(null));
375376