On Thu, 12 Sep 2019 23:08:44 +0200, Mike Wey wrote:

In the C# and PyGtk examples, there is a label and a button in the tab,
and the clicks on the close button not activating the tab would be the
desired behavior.

In your case when there is only a Button, connecting addOnClicked to a
function that would activate the tab with a call to setCurrentPage,
would be the easiest.

Right. And addOnButtonPress() should do the trick for a DrawingArea.

Thanks, Mike.