set_menu_entry_icon_text


Description:

[ Version ( since = "4.20" ) ]
public void set_menu_entry_icon_text (EntryIconPosition icon_pos, string text)

Sets the text that will be used in the context menu of the `GtkEntry` when the specified icon is activatable.

Selecting this item in the menu results, from all aspects, the same than clicking on the specified icon. This greatly simplifies making accessible applications, because the icons aren't focusable when using keyboard navigation. This is why Gtk recommends to add the same action to the context menu.

Parameters:

this

a `GtkEntry`

icon_pos

either GTK_ENTRY_ICON_PRIMARY or GTK_ENTRY_ICON_SECONDARY

text

the text used for the menu item in the context menu, or NULL to not add a menu item.