Copyright (C) 2000-2012 |
Whole document tree
GnomeMessageBoxSynopsis
Object Hierarchy
DescriptionThe GnomeMessageBox widget creates dialog boxes (of type GnomeDialog) that contain a severity level (indicated by an icon and a title), a message to be displayed and a list of buttons that will be in the dialog. The programmer will use strings desired for each button. If the strings are any of the GNOME_STOCK macros, then instead of creating a button with the text, the button will be a GNOME stock button with a stock icon. The list of known types for message boxes are: GNOME_MESSAGE_BOX_INFO, GNOME_MESSAGE_BOX_WARNING, GNOME_MESSAGE_BOX_ERROR, GNOME_MESSAGE_BOX_QUESTION and GNOME_MESSAGE_BOX_GENERIC. Here is an example that informs the user of an error:
DetailsGNOME_MESSAGE_BOX_INFO
Use this macro for displaying an informational message. GNOME_MESSAGE_BOX_WARNING
Use this macro for displaying a warning message. GNOME_MESSAGE_BOX_ERROR
Use this macro for displaying an error message. GNOME_MESSAGE_BOX_QUESTION
Use this macro when you want to query the user for information. GNOME_MESSAGE_BOX_GENERIC
Use this macro if none of the other message box types apply. gnome_message_box_new ()
Creates a dialog box of type message_box_type with message. A number of buttons are inserted on it. You can use the GNOME stock identifiers to create gnome-stock-buttons. gnome_message_box_newv ()
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 GNOME stock identifiers to create gnome-stock-buttons. gnome_message_box_set_modal ()
Deprecated. Use gtk_window_set_modal(). gnome_message_box_set_default ()
Deprecated. Use gnome_dialog_set_modal(). |