This allows alternative menu switching to be implemented, besides the builtin GtkModelButton support.