GimpUi.help_connect

function help_connect(widget: Gtk.Widget, help_func: GimpUi.HelpFunc, help_id: String): void {
    // Gjs wrapper for gimp_help_connect()
}
  

Note that this function is automatically called by all libgimp dialog constructors. You only have to call it for windows/dialogs you created "manually".

widget

The widget you want to connect the help accelerator for. Will be a Gtk.Window in most cases.

help_func

The function which will be called if the user presses "F1".

help_id

The help_id which will be passed to help_func.