type Gtk_Message_Dialog_Record is new Gtk.Dialog.Gtk_Dialog_Record with null record;
type Gtk_Message_Dialog is access all Gtk_Message_Dialog_Record'Class;
type Gtk_Message_Type is (Message_Info, Message_Warning, Message_Question, Message_Error);
Image_Property : constant Glib.Properties.Property_Object;
Secondary_Text_Property : constant Glib.Properties.Property_String;
Secondary_Use_Markup_Property : constant Glib.Properties.Property_Boolean;
Text_Property : constant Glib.Properties.Property_String;
Use_Markup_Property : constant Glib.Properties.Property_Boolean;
Message_Border_Property : constant Glib.Properties.Property_Int;
Use_Separator_Property : constant Glib.Properties.Property_Boolean;
procedure Gtk_New
( | Dialog | : out Gtk_Message_Dialog; |
Parent | : Gtk.Window.Gtk_Window := null; | |
Flags | : Gtk.Dialog.Gtk_Dialog_Flags := 0; | |
Typ | : Gtk_Message_Type := Message_Info; | |
Buttons | : Gtk_Buttons_Type := Buttons_Close; | |
Message | : String); |
procedure Initialize
( | Dialog | : access Gtk_Message_Dialog_Record'Class; |
Parent | : Gtk.Window.Gtk_Window := null; | |
Flags | : Gtk.Dialog.Gtk_Dialog_Flags := 0; | |
Typ | : Gtk_Message_Type := Message_Info; | |
Buttons | : Gtk_Buttons_Type := Buttons_Close; | |
Message | : String); |
procedure Gtk_New_With_Markup
( | Dialog | : out Gtk_Message_Dialog; |
Parent | : Gtk.Window.Gtk_Window := null; | |
Flags | : Gtk.Dialog.Gtk_Dialog_Flags := 0; | |
Typ | : Gtk_Message_Type := Message_Info; | |
Buttons | : Gtk_Buttons_Type := Buttons_Close; | |
Message | : String); |
procedure Initialize_With_Markup
( | Dialog | : access Gtk_Message_Dialog_Record'Class; |
Parent | : Gtk.Window.Gtk_Window := null; | |
Flags | : Gtk.Dialog.Gtk_Dialog_Flags := 0; | |
Typ | : Gtk_Message_Type := Message_Info; | |
Buttons | : Gtk_Buttons_Type := Buttons_Close; | |
Message | : String); |
procedure Set_Markup
( | Message_Dialog | : access Gtk_Message_Dialog_Record; |
Str | : String); |
procedure Format_Secondary_Markup
( | Message_Dialog | : access Gtk_Message_Dialog_Record; |
Message | : String); |
procedure Format_Secondary_Text
( | Message_Dialog | : access Gtk_Message_Dialog_Record; |
Message | : String); |
function Get_Image
( | Dialog | : access Gtk_Message_Dialog_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Image
( | Dialog | : access Gtk_Message_Dialog_Record; |
Image | : access Gtk.Widget.Gtk_Widget_Record'Class); |
Gtk_Message_Dialog presents a dialog with an image representing the type of message (Error, Question, etc.) alongside some message text. It's simply a convenience widget; you could construct the equivalent of Gtk_Message_Dialog from Gtk_Dialog without too much effort, but Gtk_Message_Dialog saves typing.
The easiest way to do a modal message dialog is to use Gtk.Dialog.Run, though you can also pass in the MODAL flag, Gtk.Dialog.Run automatically makes the dialog modal and waits for the user to respond to it.
Gtk.Dialog.Run returns when any dialog button is clicked.
Binding from C File version 2.16.6