## MateMessageBox MateMessageBox — Create standard message boxes. |

## Synopsis

    #include <libmateui/libmateui.h>

    #define             MATE_MESSAGE_BOX_INFO
    #define             MATE_MESSAGE_BOX_WARNING
    #define             MATE_MESSAGE_BOX_ERROR
    #define             MATE_MESSAGE_BOX_QUESTION
    #define             MATE_MESSAGE_BOX_GENERIC
    struct              MateMessageBox;
    GtkWidget *         mate_message_box_new               (const gchar *message,
                                                             const gchar *message_box_type,
                                                             ...);
    GtkWidget *         mate_message_box_newv              (const gchar *message,
                                                             const gchar *message_box_type,
                                                             const gchar **buttons);
    void                mate_message_box_construct         (MateMessageBox *messagebox,
                                                             const gchar *message,
                                                             const gchar *message_box_type,
                                                             const gchar **buttons);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkWindow
                                           +----MateDialog
                                                 +----MateMessageBox

## Implemented Interfaces

MateMessageBox implements AtkImplementorIface and GtkBuildable.

## Description

## Details

### MATE_MESSAGE_BOX_INFO

    #define MATE_MESSAGE_BOX_INFO      "info"

### Warning

`MATE_MESSAGE_BOX_INFO` is deprecated and should not be used in newly-written code.

A constant that can be passed to `mate_message_box_new()` to specify the type of message box to create.

### MATE_MESSAGE_BOX_WARNING

    #define MATE_MESSAGE_BOX_WARNING   "warning"

### Warning

`MATE_MESSAGE_BOX_WARNING` is deprecated and should not be used in newly-written code.

A constant that can be passed to `mate_message_box_new()` to specify the type of message box to create.

### MATE_MESSAGE_BOX_ERROR

    #define MATE_MESSAGE_BOX_ERROR     "error"

### Warning

`MATE_MESSAGE_BOX_ERROR` is deprecated and should not be used in newly-written code.

A constant that can be passed to `mate_message_box_new()` to specify the type of message box to create.

### MATE_MESSAGE_BOX_QUESTION

    #define MATE_MESSAGE_BOX_QUESTION  "question"

### Warning

`MATE_MESSAGE_BOX_QUESTION` is deprecated and should not be used in newly-written code.

A constant that can be passed to `mate_message_box_new()` to specify the type of message box to create.

### MATE_MESSAGE_BOX_GENERIC

    #define MATE_MESSAGE_BOX_GENERIC   "generic"

### Warning

`MATE_MESSAGE_BOX_GENERIC` is deprecated and should not be used in newly-written code.

A constant that can be passed to `mate_message_box_new()` to specify the type of message box to create.

### struct MateMessageBox

    struct MateMessageBox {
      MateDialog dialog;
    };

### Warning

`MateMessageBox` is deprecated and should not be used in newly-written code.

MateDialog `dialog`; | A MateDialog widget holding the contents of the message box.

### mate_message_box_new ()

    GtkWidget *         mate_message_box_new               (const gchar *message,
                                                             const gchar *message_box_type,
                                                             ...);

### Warning

`mate_message_box_new` is deprecated and should not be used in newly-written code.

Creates a dialog box of type `message_box_type` with `message`. A number of buttons are inserted on it. You can use the MATE stock identifiers to create mate-stock-buttons.

`message` : | The message to be displayed.
`message_box_type` : | The type of the message
`...` : | A NULL terminated list of strings to use in each button.
Returns : | a widget that has the dialog box.

### mate_message_box_newv ()

    GtkWidget *         mate_message_box_newv              (const gchar *message,
                                                             const gchar *message_box_type,
                                                             const gchar **buttons);

### Warning

`mate_message_box_newv` is deprecated and should not be used in newly-written code.

Creates a dialog box of type `message_box_type` with `message`. A number of buttons are inserted on it, the messages come from the `buttons` array. You can use the MATE stock identifiers to create mate-stock-buttons. The buttons array can be NULL if you wish to add buttons yourself later.

`message` : | The message to be displayed.
`message_box_type` : | The type of the message
`buttons` : | a NULL terminated array with the buttons to insert.
Returns : | a widget that has the dialog box.

### mate_message_box_construct ()

    void                mate_message_box_construct         (MateMessageBox *messagebox,
                                                             const gchar *message,
                                                             const gchar *message_box_type,
                                                             const gchar **buttons);

### Warning

`mate_message_box_construct` is deprecated and should not be used in newly-written code.

For language bindings or subclassing, from C use mate_message_box_new or mate_message_box_newv

`messagebox` : | The message box to construct
`message` : | The message to be displayed.
`message_box_type` : | The type of the message
`buttons` : | a NULL terminated array with the buttons to insert.