How to show alerts using GtkMessageDialog

1. create the layout with
2. connect the
3. when click, get the
4. to display a alert, create a
5. run the dialog with
6. when the alert closed, call the
GtkBox, adding a
GtkLabel,
GtkEntryand a
GtkButton;
2. connect the
GtkButtonclick signal, to take action when click on button;
3. when click, get the
GtkEntrytext with
GtkEntry::get_text;
4. to display a alert, create a
GtkMessageDialog, configuring for what
GtkWidow, the display mode, the
GtkMessageType, the
GtkButtonsTypeand the message;
5. run the dialog with
GtkMessageDialog::runand wait this to be closed;
6. when the alert closed, call the
GtkMessageDialog::destroyto free memory;