Commit Graph
3 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 076cb486d6 dtfile: the folder-merge question as one sentence with Stop / Merge; Return takes the default button (t0215)
create_replace_merge_dialog: "A folder named ... already exists in this location.
Do you want to merge the contents of the two folders?" and Stop / Merge, no radio
box.  Merge is the default (Return), Escape and the Stop button cancel.  The
hidden G_merge_toggle keeps replace_merge_ok_callback and the pipe protocol as
they were; "replace the whole folder" is no answer of this question any more.

Found while measuring Stop: the focus of both dialogs sat on the FIRST button
(Stop here, Keep Both in the single-file dialog of t0156), and in Motif Return
activates the focused button, so Return did not take the default.  XmNinitialFocus
is ignored on the form for a button in a RowColumn (a tab group of its own); it
is set on the row now, to Merge and Replace.

Measured (real dtfile on Xvfb; Cmd+C opens the Copy Object dialog, the
destination typed there; folders A/ord{one.txt}, B/ord{two.txt}):
  folder: Return -> B/ord one.txt two.txt; Merge button -> the same; Escape and
  Stop button -> B/ord two.txt only; A/ord one.txt every time.
  file (A/f.txt "from-A", B/f.txt "from-B"): Return -> f.txt=from-A; Escape and
  Stop button -> f.txt=from-B (the Stop of t0156 now measured); Keep Both ->
  f_1.txt=from-B and f.txt=from-A.
Before the focus fix Return in the folder dialog did NOT merge (B/ord two.txt).
Cross compile for NetBSD (x86_64--netbsd-gcc, the build's flags): no error, no
warning in the changed code.  Screenshots: Finder-Copy-Merge-mcde.png (new),
Finder-Copy-Replace-mcde.png (retaken: the focus is on Replace).

Not done: the multi-collision dialog "Do this for all" (item 3 of the task).
Keep Both renames the EXISTING file (CDE's rename protocol); the Finder keeps
the incoming copy under the new name -- noted in AGENTS.md, not changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:55:52 +00:00
lotherk 6b3aa13ae8 MCDE dtfile: the overwrite question as one sentence with Keep Both / Stop / Replace (t0156) 2026-11-14 14:16:06 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00