From f751b36979aecca2189b1258fb8b454039c88cc6 Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Fri, 13 Jul 2012 17:16:51 -0700 Subject: regedit: Print the registry path. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 6e25897476..59afeefe53 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -77,7 +77,7 @@ static struct tree_node *load_hives(TALLOC_CTX *mem_ctx, static void display_test_window(TALLOC_CTX *mem_ctx, struct registry_context *ctx) { - WINDOW *tree_window; + WINDOW *tree_window, *path_label; struct tree_view *view; struct tree_node *root, *node; int c; @@ -93,6 +93,10 @@ static void display_test_window(TALLOC_CTX *mem_ctx, keypad(tree_window, TRUE); + mvwprintw(tree_window, 0, 0, "Path: "); + path_label = derwin(tree_window, 1, 45, 0, 6); + wprintw(path_label, "/"); + root = load_hives(mem_ctx, ctx); SMB_ASSERT(root != NULL); @@ -114,12 +118,14 @@ static void display_test_window(TALLOC_CTX *mem_ctx, node = item_userptr(current_item(view->menu)); if (node && tree_node_has_children(node)) { tree_node_load_children(node); + tree_node_print_path(path_label, node->child_head); tree_view_update(view, node->child_head); } break; case KEY_LEFT: node = item_userptr(current_item(view->menu)); if (node && node->parent) { + tree_node_print_path(path_label, node->child_head); tree_view_update(view, tree_node_first(node->parent)); } -- cgit