Cleanups
Some cleanups from !718 (merged) upfront since i'm otherwise having trouble merging all branches together for testing.
It pulls most of the g_ensure_type()
into the shell since they're used in multiple location and cleans up top-panel.ui a bit.
Edited by Guido Gunther