Revert part of "gtknotebook: Optimize GtkStyleContext usage"

This reverts part of commit c71e2131345c929753a0128c780d679ce0c4ce6a.
This part was unfinished and was pushed simply to avoid the warnings.