This avoids a critical warning from gtk_widget_get_parent() if focus_widget == NULL.
gtk_widget_get_parent()
focus_widget == NULL