set_icon_tooltip_text


Description:

public void set_icon_tooltip_text (EntryIconPosition icon_pos, string? tooltip)

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:

this

a `GtkEntry`

icon_pos

the icon position

tooltip

the contents of the tooltip for the icon