diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 11:49:35 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 11:49:35 +0200 |
| commit | 3ff1363446e238a8d7a9fdeb533763fb3f9ec307 (patch) | |
| tree | 08e61eec656d00140e6ea020b523d96b70bf2e87 /gui/internal | |
| parent | 629ec29e33506a9bf96f552dcc2e6b6cd0560916 (diff) | |
| download | krino-3ff1363446e238a8d7a9fdeb533763fb3f9ec307.tar.gz krino-3ff1363446e238a8d7a9fdeb533763fb3f9ec307.zip | |
gui: the path keeps its telling end, and the checklist grows three items
Squeezed, the toolbar's path label read "/t... ds". It now elides the
start, since the end of a path is the part that says which directory
this is, and will not shrink below about sixteen characters; the
tooltip still holds it in full.
The checklist gains the reordered bar, the About block, and the
sandbox trap that had every file skipped: krino's own (min-age 2m)
ignores a file written in the last two minutes.
Diffstat (limited to 'gui/internal')
| -rw-r--r-- | gui/internal/ui/plan.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/internal/ui/plan.go b/gui/internal/ui/plan.go index fe99a18..650668c 100644 --- a/gui/internal/ui/plan.go +++ b/gui/internal/ui/plan.go @@ -88,8 +88,12 @@ func newPlanView(w *Window) *planView { p.path = gtk.NewLabel("") p.path.SetXAlign(0) p.path.SetHExpand(true) - p.path.SetEllipsize(pango.EllipsizeMiddle) - p.path.SetMaxWidthChars(20) + // The end of a path says which directory this is, so that is the end + // that survives. It may be squeezed, but not to "/t... ds": below + // about this much it says nothing, and the tooltip holds it in full. + p.path.SetEllipsize(pango.EllipsizeStart) + p.path.SetMaxWidthChars(24) + p.path.SetWidthChars(16) p.dirs.Connect("notify::selected", p.showPath) p.scan = gtk.NewButtonWithLabel("Scan") // The one button that starts everything, so it carries the theme's |
