All other good, however great in reality or appearance, excites not a man’s desires who looks not on it to make a part of that happiness wherewith he, in his present thoughts, can satisfy himself.
 John Locke, An Essay Concerning Human Understanding (1689). copy citation

Context

“yet all good, even seen and confessed to be so, does not necessarily move every particular man’s desire; but only that part, or so much of it as is considered and taken to make a necessary part of HIS happiness. All other good, however great in reality or appearance, excites not a man’s desires who looks not on it to make a part of that happiness wherewith he, in his present thoughts, can satisfy himself. Happiness, under this view, every one constantly pursues, and desires what makes any part of it: other things, acknowledged to be good, he can look upon without desire, pass by, and be content without.” source