reposition() is used internally to reposition a GtkMenuItem's submenu according to the results of the position function called in the popup() method.