summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorC. Davis <cd.rattan@gmail.com>2012-07-13 17:16:51 -0700
committerMichael Adam <obnox@samba.org>2013-04-29 13:05:50 +0200
commitf751b36979aecca2189b1258fb8b454039c88cc6 (patch)
tree6d1a493a1dd4c8dd7af07eab48ec8dc02d3a5e0f /source3
parent632cefa1da3e0ecda5932420cc551d40faa245af (diff)
downloadsamba-f751b36979aecca2189b1258fb8b454039c88cc6.tar.gz
samba-f751b36979aecca2189b1258fb8b454039c88cc6.tar.bz2
samba-f751b36979aecca2189b1258fb8b454039c88cc6.zip
regedit: Print the registry path.
Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/regedit.c8
1 files changed, 7 insertions, 1 deletions
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));
}