Object Hierarchy:

Object hierarchy for MessageDialog


public class MessageDialog : Dialog

MessageDialog is an elementary OS styled dialog used to display a message to the user.

The class itself is similar to it's Gtk equivalent Gtk.MessageDialog but follows elementary OS design conventions.

See The Human Interface Guidelines for dialogs for more detailed disscussion on the dialog wording and design.


  var message_dialog = new Granite.MessageDialog.with_image_from_icon_name (
"This is a primary text",
"This is a secondary, multiline, long text. This text usually extends the primary text and prints e.g: the details of an error.",

var custom_widget = new Gtk.CheckButton.with_label ("Custom widget"); ();

message_dialog.custom_bin.add (custom_widget); ();
message_dialog.destroy ();

Namespace: Granite
Package: granite



Creation methods:

Inherited Members:

All known members inherited from class Gtk.Window
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor