ui: cap and cheapen the dock's events rebuild
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
baf1c73b21
commit
cb098eff75
4 files changed
+133
-34
No files matched your search
@@ -1797,7 +1797,12 @@ void dock_measure_value(App& app, std::size_t i, const std::string& text);
|
||||
/// of what is *on screen* (in place, no rebuild), `dock_events_set_sensitive()` is the one writer of the
|
||||
/// block's sensitivity. All three are no-ops before the block is built.
|
||||
GtkWidget* build_events_dock(App& app);
|
||||
/// The dock shows at most this many events (the newest), then one dim "... N more, see Manage" row.
|
||||
inline constexpr std::size_t kDockEventsMax = 24;
|
||||
/// The first lists the store itself; the second takes a list the caller already holds (so one refresh
|
||||
/// reads the cache directory once, not twice). Both keep the list's vertical scroll across the rebuild.
|
||||
void dock_rebuild_events(App& app);
|
||||
void dock_rebuild_events(App& app, const std::vector<EventRecord>& records);
|
||||
void dock_mark_events(App& app);
|
||||
void dock_events_set_sensitive(App& app, bool available);
|
||||
/// A row's first line, and the two questions its mark is made of (`ui_events.cpp`): the one function
|
||||
|
||||
Reference in new issue
Block a user