MessageDialog


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.Widget Gtk.Widget Gtk.Widget->Gtk.Window GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Dialog Gtk.Accessible->Gtk.Window Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Dialog Gtk.Buildable->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Dialog Gtk.ConstraintTarget->Gtk.Window Gtk.ConstraintTarget->Gtk.Widget Gtk.Native Gtk.Native Gtk.Native->Gtk.Dialog Gtk.Native->Gtk.Window Gtk.Root Gtk.Root Gtk.Root->Gtk.Dialog Gtk.Root->Gtk.Window Gtk.ShortcutManager Gtk.ShortcutManager Gtk.ShortcutManager->Gtk.Dialog Gtk.ShortcutManager->Gtk.Window

Description:


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.

Example

  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.",
"applications-development",
Gtk.ButtonsType.CLOSE
);

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

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


Namespace: Granite
Package: granite-7

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Granite.Dialog
All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.Native
All known members inherited from interface Gtk.Root
All known members inherited from interface Gtk.ShortcutManager