diff options
| author | Greg Ercolano <erco@seriss.com> | 2018-10-29 18:33:37 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2018-10-29 18:33:37 +0000 |
| commit | cfe555f410ca018726c924a1b4c2679b87ab607d (patch) | |
| tree | bac315ee704193fc58c77369eba4776afaaebe31 | |
| parent | c146ba344c185503166b933bcf730098226939f6 (diff) | |
Print both returned path and relative path in tty.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | test/file_chooser.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 3ac919a24..81328719a 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -368,15 +368,11 @@ show_callback(void) for (i = 1; i <= count; i ++) { - if (!fc->value(i)) - break; - - tty->printf("%d/%d) %sPicked: '%s'%s\n", i, count, TERMINAL_GREEN, fc->value(i), TERMINAL_NORMAL); - + if (!fc->value(i)) break; fl_filename_relative(relative, sizeof(relative), fc->value(i)); - - files->add(relative, - Fl_File_Icon::find(fc->value(i), Fl_File_Icon::PLAIN)); + tty->printf("%d/%d) %sPicked: '%s'\n Relative: '%s'%s\n", i, count, + TERMINAL_GREEN, fc->value(i), relative, TERMINAL_NORMAL); + files->add(relative, Fl_File_Icon::find(fc->value(i), Fl_File_Icon::PLAIN)); } files->redraw(); |
