Top |
GtkButtonsType | buttons | Write / Construct Only |
GtkWidget * | image | Read / Write |
GtkWidget * | message-area | Read |
GtkMessageType | message-type | Read / Write / Construct |
gchar * | secondary-text | Read / Write |
gboolean | secondary-use-markup | Read / Write |
gchar * | text | Read / Write |
gboolean | use-markup | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkDialog ╰── GtkMessageDialog
GtkWidget * gtk_message_dialog_new (GtkWindow *parent
,GtkDialogFlags flags
,GtkMessageType type
,GtkButtonsType buttons
,const gchar *message_format
,...
);
GtkWidget * gtk_message_dialog_new_with_markup (GtkWindow *parent
,GtkDialogFlags flags
,GtkMessageType type
,GtkButtonsType buttons
,const gchar *message_format
,...
);
Since: 2.4
void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog
,const gchar *str
);
Since: 2.4
void gtk_message_dialog_set_image (GtkMessageDialog *dialog
,GtkWidget *image
);
Since: 2.10
GtkWidget *
gtk_message_dialog_get_image (GtkMessageDialog *dialog
);
Since: 2.14
GtkWidget *
gtk_message_dialog_get_message_area (GtkMessageDialog *message_dialog
);
Since: 2.22
void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog
,const gchar *message_format
,...
);
Since: 2.6
void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog
,const gchar *message_format
,...
);
Since: 2.6
“buttons”
property“buttons” GtkButtonsType
The buttons shown in the message dialog.
Flags: Write / Construct Only
Default value: GTK_BUTTONS_NONE
“message-area”
property“message-area” GtkWidget *
GtkVBox that holds the dialog's primary and secondary labels.
Flags: Read
Since: 2.22
“message-type”
property“message-type” GtkMessageType
The type of message.
Flags: Read / Write / Construct
Default value: GTK_MESSAGE_INFO
“secondary-text”
property“secondary-text” gchar *
The secondary text of the message dialog.
Flags: Read / Write
Default value: NULL
Since: 2.10
“secondary-use-markup”
property“secondary-use-markup” gboolean
The secondary text includes Pango markup.
Flags: Read / Write
Default value: FALSE
Since: 2.10
“text”
property“text” gchar *
The primary text of the message dialog.
Flags: Read / Write
Default value: ""
Since: 2.10
“message-border”
style property“message-border” gint
Width of border around the label and image in the message dialog.
Flags: Read
Allowed values: >= 0
Default value: 12
“use-separator”
style property“use-separator” gboolean
Whether to put a separator between the message dialog's text and the buttons.
GtkMessageDialog:use-separator
has been deprecated since version 2.22 and should not be used in newly-written code.
This style property will be removed in GTK+ 3
Flags: Read
Default value: FALSE
Since: 2.4