GNOME Bugzilla – Bug 693346
apps-menu: Few clean ups
Last modified: 2013-02-08 12:30:59 UTC
A random assortment of cleanups. Should not have any behavioural changes.
Created attachment 235427 [details] [review] apps-menu: Clean up code
Created attachment 235428 [details] [review] apps-menu: Clean up code
Do you want me to squash them? Easier to squash than split, so I kept them separate.
Bah, squash and then push them.
Thanks. Pushed as: commit c626cc2a1d412ef1000d2c74860bd19fb5711971 Author: Debarshi Ray <debarshir@gnome.org> Date: Fri Feb 1 14:51:25 2013 +0100 apps-menu: Clean up code The empty array is created and inserted into the hashtable before every call to _loadCategory. No need to check for it and create it again inside the function. Don't mix up negated if conditions with continue while skipping stuff that should not be displayed. Follow one style for consistency. https://bugzilla.gnome.org/show_bug.cgi?id=693346