It is possible to have no understanding of this and not to be troubled in mind: things of themselves have no inherent power to form our judgements.
What is truly in your control is your actions and opinions. Glory and pleasure are externals and you do not have control over these. If you seek glory (fame) and pleasure and it does not come to you, you will be disappointed - you will not be content. But, if you focus your contentment on what is in your control - which is your opinion and actions and your focus on virtue, then you can control whether you will be content or not.
Glory, fame, pleasure, power, money, wealth - all these things have no power or control over you. They only have power when you desire them. If you break your desire of these things, they lose any power you imagined they had over you.