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 [[email protected]_tooltip_text] and [[email protected]_icon_tooltip_markup].

If you unset the widget tooltip via [[email protected]_tooltip_text] or [[email protected]_tooltip_markup], this sets [ [email protected]:has-tooltip] to false, which suppresses icon tooltips too. You can resolve this by then calling [[email protected]_has_tooltip] to set [[email protected]: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




2022 vala-language.org