gtk_image_menu_item_new_from_icon_name


Description:


[ Version ( since = "4.16" ) ]
public unowned Widget gtk_image_menu_item_new_from_icon_name (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, string? icon_name, MenuShell? menu_to_append_item)

Convenience method to create a ImageMenuItem and preconfigure it with the passed parameters.

Parameters:

label_text

Label to use for the ImageMenuItem

tooltip_text

Tooltip to add on the passed item, or NULL

accel_path

Unique path, used to identify the accelerator, or NULL

callback

RadioActionCallback which will be triggered on activation, or NULL

callback_param

optional callback parameter, or NULL.

icon_name

name of the icon to use for the ImageMenuItem, or NULL

menu_to_append_item

MenuShell on which the item should be appended, or NULL

Returns:

A new ImageMenuItem.


Namespace: Xfce
Package: libxfce4ui-2