Shell/1591

Cherry-pick some fixes from master for GtkPopovers.

endlessm/eos-shell#1591