Returns the gravity that is used when changing the toplevel size programmatically.
a toplevel
the gravity