diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-08-08 15:36:01 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:06:11 +0200 |
commit | e4ed97f9b36a562815fe370c2b0b60105d7f5eba (patch) | |
tree | b8752ad145a192d97f8bf31317fa66e428a56b5e /source3/utils/regedit_dialog.h | |
parent | 5cfbf7316c16c0205ff87f7980e05a2ab1671709 (diff) | |
download | samba-e4ed97f9b36a562815fe370c2b0b60105d7f5eba.tar.gz samba-e4ed97f9b36a562815fe370c2b0b60105d7f5eba.tar.bz2 samba-e4ed97f9b36a562815fe370c2b0b60105d7f5eba.zip |
regedit: Simplify notice dialogs, don't overwrite existing values.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/regedit_dialog.h')
-rw-r--r-- | source3/utils/regedit_dialog.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/utils/regedit_dialog.h b/source3/utils/regedit_dialog.h index 19a8529e29..132e48b3e5 100644 --- a/source3/utils/regedit_dialog.h +++ b/source3/utils/regedit_dialog.h @@ -47,15 +47,19 @@ struct dialog *dialog_choice_center_new(TALLOC_CTX *ctx, const char *title, const char **choices, int nlines, int ncols, WINDOW *below); -struct dialog *dialog_confirm_new(TALLOC_CTX *ctx, const char *title, - WINDOW *below, const char *msg, ...); +enum dialog_type { + DIA_ALERT, + DIA_CONFIRM +}; enum dialog_selection { DIALOG_OK = 0, DIALOG_CANCEL = 1 }; -int dialog_modal_loop(struct dialog *dia); +int dialog_notice(TALLOC_CTX *ctx, enum dialog_type type, + const char *title, WINDOW *below, + const char *msg, ...); struct registry_key; struct value_item; |