diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-08-08 12:09:03 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:06:08 +0200 |
commit | 3b6da775d30edcc44655d4eccca00dc71a1835bb (patch) | |
tree | 10d913e63392d6084e23c836d68024a69e684381 /source3/utils/regedit.c | |
parent | af60882af4f34556b101d6735095014304620b2d (diff) | |
download | samba-3b6da775d30edcc44655d4eccca00dc71a1835bb.tar.gz samba-3b6da775d30edcc44655d4eccca00dc71a1835bb.tar.bz2 samba-3b6da775d30edcc44655d4eccca00dc71a1835bb.zip |
regedit: Add new value type selection dialog.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/regedit.c')
-rw-r--r-- | source3/utils/regedit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 9c8724d136..a18a79dcc2 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -180,6 +180,15 @@ static void handle_value_input(struct regedit *regedit, int c) value_list_load(regedit->vl, node->key); } break; + case 'n': + case 'N': { + int new_type; + + if (dialog_select_type(regedit, &new_type, regedit->main_window) == DIALOG_OK) { + mvwprintw(regedit->main_window, 1, 0, "Item: %s (%d)", str_regtype(new_type), new_type); + } + break; + } case 'd': case 'D': vitem = item_userptr(current_item(regedit->vl->menu)); |