Also fixes the problem of the missing `document-activate` signal from what I tested. Just to clarify, `Notebook::switch-page` is fired also for a single tab, right? The documentation isn't completely clear about it but since `document-activate` is emitted in this case, it seems to be the case.
Yes, it is. As the docs is indeed not entirely clear, I did some empirical testing with a standalone sample app and it showed to be consistent. And as you noted, it does work for our use-case in practice.