- A search field in the toolbar narrows the window to the names with the
text (any case); FilterFiles asks _McdeNavHidden, the text is kept per
window in Navigation.c; a new directory starts with an empty search.
- The view buttons show the window's view from the start, and the first
directory starts the history: the first window gets it without
ShowNewDirectory, so both are set once the window's data is attached.
- ChangeDir.c: the desktop folder's lock compared two empty ToolTalk paths
and refused every folder ('restricted folder' with an empty name); it
compares real paths only.
Tested on Xvfb with dtwm: Icons pressed at start, List, Documents from the
sidebar, Back to home, Forward to Documents, 're' leaves report.pdf.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
957 B
C
23 lines
957 B
C
/*
|
|
* Navigation.h -- MCDE: the navigation parts of the file manager window (Navigation.c)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*/
|
|
|
|
#ifndef _Navigation_h
|
|
#define _Navigation_h
|
|
|
|
/* the form that holds toolbar, sidebar and (after _McdeNavAttachWork) the
|
|
* work area; it becomes the main window's work window */
|
|
extern Widget _McdeNavCreate(FileMgrRec *rec, Widget parent);
|
|
extern void _McdeNavAttachWork(FileMgrRec *rec, Widget work);
|
|
/* called by ShowNewDirectory for every directory the window shows */
|
|
extern void _McdeNavVisit(FileMgrRec *rec, const char *dir);
|
|
/* appends ", 12.3 GB available" to the status text in buf */
|
|
extern void _McdeNavFreeSpace(const char *dir, char *buf, size_t len);
|
|
/* MCDE: the search field of the window of DATA: is NAME hidden by it
|
|
* (FilterFiles in File.c asks for every file) */
|
|
extern Boolean _McdeNavHidden(FileMgrData *data, const char *name);
|
|
|
|
#endif /* _Navigation_h */
|