Added title and separate line to the tree selection window.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Andrew Borodin 2010-05-25 11:16:06 +04:00
parent 196b44ead0
commit 24f1e80cf1

View File

@ -692,10 +692,12 @@ tree_box (const char *current_dir)
/* Create the components */ /* Create the components */
dlg = create_dlg (0, 0, LINES - 9, COLS - 20, dialog_colors, dlg = create_dlg (0, 0, LINES - 9, COLS - 20, dialog_colors,
tree_callback, "[Directory Tree]", NULL, DLG_CENTER | DLG_REVERSE); tree_callback, "[Directory Tree]",
_("Directory tree"), DLG_CENTER | DLG_REVERSE);
mytree = tree_new (2, 2, dlg->lines - 6, dlg->cols - 5, FALSE); mytree = tree_new (2, 2, dlg->lines - 6, dlg->cols - 5, FALSE);
add_widget (dlg, mytree); add_widget (dlg, mytree);
add_widget (dlg, hline_new (dlg->lines - 4, 1, -1));
bar = buttonbar_new (TRUE); bar = buttonbar_new (TRUE);
add_widget (dlg, bar); add_widget (dlg, bar);
/* restore ButtonBar coordinates after add_widget() */ /* restore ButtonBar coordinates after add_widget() */