From e4ed97f9b36a562815fe370c2b0b60105d7f5eba Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Wed, 8 Aug 2012 15:36:01 -0700 Subject: regedit: Simplify notice dialogs, don't overwrite existing values. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit_dialog.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source3/utils/regedit_dialog.h') 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; -- cgit