MessageDialog.with_image_from_icon_name


Description:

public MessageDialog.with_image_from_icon_name (string primary_text, string secondary_text, string image_icon_name = "dialog-information", ButtonsType buttons = CLOSE)

Constructs a new Granite.MessageDialog with an icon name as it's icon displayed in the image. This constructor is same as the main one but with a difference that you can pass an icon name string instead of manually creating the GLib.Icon.

The Granite.MessageDialog.image_icon will store the created icon so you can retrieve it later with GLib.Icon.to_string.

See Gtk.Dialog for more details.

Parameters:

primary_text

the title of the dialog

secondary_text

the body of the dialog

image_icon_name

the icon name to create the dialog image with

buttons

the Gtk.ButtonsType value that decides what buttons to use, defaults to Gtk.ButtonsType.CLOSE, see Granite.MessageDialog.buttons on details and what values are accepted