I have a Notebook element and TextView elements inside them. Because the pages on the notebook will be constantly switched between. I need to be able to have in a variable the currently selected TextView's buffer. How would I do this?
You can use
which will give you the current page number. and use
to get the widget on that page.