grab_focus() can only be called
when the widget in question has the GTK_CAN_FOCUS
flag set. Some will have this set at source, others will not, and will
generate an error message to that effect when the method is called.
Use set_flags() to override the
source settings.