Instead of accessing 3 times the same key, use the cached version and save up some time.
With it, it is up to Gtk+ to handle the popover.