typo fix.
Some style fixes.
Show/hide methods for dock.
Simplify visibility changed on windows since setBadge is called from
manager.