There appears to be a bug in the text widget. When the widget obtains the focus either from tab-cycling or via gtk_widget_grab_focus() it does get the focus, but it does not get a cursor. This makes it impossible to use without first clicking it with the mouse.