aboutsummaryrefslogtreecommitdiffstats
path: root/simple_dialog.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-09-20 01:53:38 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-09-20 01:53:38 +0000
commit81e9a70a96ff082669cee89d47353ff296432a45 (patch)
tree203d1a9347f4e3d5487164907c097a39168f4c85 /simple_dialog.h
parent7f97d9e9e759cb65dfb602045b66a2218b4dafd6 (diff)
enhance simple dialog: add the possibility to use no buttons at all and add a stop icon (similar to the splash_window, but with a slightly different layout and a way to choose the icon shown)
svn path=/trunk/; revision=15886
Diffstat (limited to 'simple_dialog.h')
-rw-r--r--simple_dialog.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/simple_dialog.h b/simple_dialog.h
index 071de16a4b..098dca3462 100644
--- a/simple_dialog.h
+++ b/simple_dialog.h
@@ -43,9 +43,12 @@ typedef enum {
ESD_TYPE_WARN, /**< tells the user about a problem; the only button should be "OK" */
ESD_TYPE_CONFIRMATION, /**< asks the user for confirmation; there should be more than
one button */
- ESD_TYPE_ERROR /**< tells the user about a serious problem; the only button should be "OK" */
+ ESD_TYPE_ERROR, /**< tells the user about a serious problem; the only button should be "OK" */
+ ESD_TYPE_STOP, /**< tells the user a stop action is in progress, there should be no button */
} ESD_TYPE_E;
+/** display no buttons at all */
+#define ESD_BTN_NONE 0x00
/** display an "Ok" button */
#define ESD_BTN_OK 0x01
/** display a "Cancel" button */
@@ -126,6 +129,12 @@ typedef void (* simple_dialog_cb_t) (gpointer dialog, gint btn, gpointer data);
*/
extern void simple_dialog_set_cb(gpointer dialog, simple_dialog_cb_t callback_fct, gpointer data);
+/** Close the dialog, useful for "no button" dialogs.
+ *
+ * @param dialog the dialog to close from simple_dialog()
+ */
+extern void simple_dialog_close(gpointer dialog);
+
/** Add a check button to the dialog (e.g. "Don't show this message again")
*
* @param dialog the dialog from simple_dialog()