GimpUi.help_set_help_data

function help_set_help_data(widget: Gtk.Widget, tooltip: String, help_id: String): void {
    // Gjs wrapper for gimp_help_set_help_data()
}
  

The reason why we don't use gtk_widget_set_tooltip_text() is that elements in the GIMP user interface should, if possible, also have a help_id set for context-sensitive help.

This function can be called with null for tooltip. Use this feature if you want to set a help link for a widget which shouldn't have a visible tooltip.

widget

The Gtk.Widget you want to set a tooltip and/or help_id for.

tooltip

The text for this widget's tooltip (or null).

help_id

The help_id for the #GtkTipsQuery tooltips inspector.