The "set-focus" signal is emitted by the GtkWindow in response to a set_focus() method call, which is triggered each time the child having focus within that window changes, that is, every time the user chooses a different child widget.
The signal is primarily for internal GTK use.
Callback function