Package: gtk

Function gtk:action-create-icon

Lambda List

gtk:action-create-icon (action size)

Arguments

action -- a gtk:action object
size -- a value of the gtk:icon-size enumeration for the size of the icon that should be created

Return Value

The gtk:widget object that displays the icon for this action.

Details

This function is intended for use by action implementations to create icons displayed in the proxy widgets.

Warning

The gtk:action-create-icon function has been deprecated since version 3.10 and should not be used in newly written code. Use the g:menu-item-set-icon function to set an icon on a g:menu-item object, or the gtk:container-add function to add a gtk:image widget to a gtk:button widget.
 

See also

2024-9-26