Codebase list gnome-shell-extensions / af3900e
Sync with Debian. Remaining changes: * Sync with Debian. Remaining changes: - apps-menu with multiple levels Sophie Brun 8 years ago
2 changed file(s) with 11 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 gnome-shell-extensions (3.18.4-1kali1) kali-dev; urgency=medium
1
2 * Sync with Debian. Remaining changes:
3 - apps-menu with multiple levels
4
5 -- Sophie Brun <[email protected]> Fri, 18 Mar 2016 15:47:43 +0100
6
07 gnome-shell-extensions (3.18.4-1) unstable; urgency=medium
18
29 * New upstream release.
208208 continue;
209209 }
210210 let app = appSys.lookup_app(id);
211 - if (app.get_app_info().should_show())
211 - if (app && 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())
227227 + categoryMenuItem = new CategoryMenuItem(this, subdir);
228228 + if (this.applicationsByCategory[menu_id].length > 0 || !categoryMenuItem.menu.isEmpty()) {
229229 + parentCategory.menu.addMenuItem(categoryMenuItem);
230 + }
231 + }
230 + }
231 + }
232232 }
233233 }
234234 },