setIconTooltipText

open fun setIconTooltipText(iconPos: EntryIconPosition, tooltip: String? = null)

Sets @tooltip as the contents of the tooltip for the icon at the specified position.

Use null for @tooltip to remove an existing tooltip.

See also method@Gtk.Widget.set_tooltip_text and method@Gtk.Entry.set_icon_tooltip_markup.

If you unset the widget tooltip via method@Gtk.Widget.set_tooltip_text or method@Gtk.Widget.set_tooltip_markup, this sets property@Gtk.Widget:has-tooltip to false, which suppresses icon tooltips too. You can resolve this by then calling method@Gtk.Widget.set_has_tooltip to set property@Gtk.Widget:has-tooltip back to true, or setting at least one non-empty tooltip on any icon achieves the same result.

Parameters

iconPos

the icon position

tooltip

the contents of the tooltip for the icon