Object Hierarchy:

Granite.MessageDialog Granite.MessageDialog Granite.MessageDialog Granite.Dialog Granite.Dialog Granite.Dialog->Granite.MessageDialog Gtk.Dialog Gtk.Dialog Gtk.Dialog->Granite.Dialog Gtk.Window Gtk.Window Gtk.Window->Gtk.Dialog Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Window Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.Dialog Atk.Implementor->Gtk.Window Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Dialog Gtk.Buildable->Gtk.Window Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget


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 Granite.Dialog
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