Method

GtkEntryget_icon_pixbuf

since: 2.16

Declaration [src]

GdkPixbuf*
gtk_entry_get_icon_pixbuf (
  GtkEntry* entry,
  GtkEntryIconPosition icon_pos
)

Description [src]

Retrieves the image used for the icon.

Unlike the other methods of setting and getting icon data, this method will work regardless of whether the icon was set using a GdkPixbuf, a GIcon, a stock item, or an icon name.

Available since: 2.16

Parameters

icon_pos

Type: GtkEntryIconPosition

Icon position.

Return value

Type: GdkPixbuf

A GdkPixbuf, or NULL if no icon is set for this position.

The data is owned by the instance.
The return value can be NULL.