This copies what was done for GtkEntry: get the focused state from the GtkText within. We also add a private getter for the text widget, which was missing here.