haiku/src/kits/tracker
Zach Dykstra 41bdfde7e6 tracker: write default columns to correct attr
Tracker creates folders in
~/config/settings/Tracker/DefaultQueryTemplates with customized
attributes. In particular, each folder has relevant columns already
pre-set. These were being generated and written to disk in the host's
endian, but always written to the big endian attribute name.

This meant that on LE CPUs, Tracker tried to load _trk/columns and
convert it from BE to LE. Sanity checks failed, and each 'converted'
column was deleted, leaving Tracker to install a default set of columns.

The attribute for the host's endian is now automatically used
(_trk/columns for BE, _trk/columns_le for LE).

This fix also exposed that the 'When' column for the text_x-email
template folder was incorrectly typed as a string, instead of time.

Change-Id: I44d5f99d71d949368ff1aba1f48c03332a26d331
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6213
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-03-20 22:14:28 +00:00
..
infowindow Tracker: Basic adjustments to InfoWindow to respect BControlLook. 2022-08-26 17:32:18 -04:00
Attributes.h Tracker: Add thumbnail support 2021-08-27 11:39:13 +00:00
AttributeStream.cpp Tracker: Throw exception on assert failure 2014-08-10 15:07:38 -04:00
AttributeStream.h Tracker: style fixes 2014-08-10 15:06:34 -04:00
AUTHORS Automatic whitespace cleanup. No functional change. 2013-01-02 10:11:56 +00:00
AutoMounterSettings.cpp Replace "All BeOS disks" with "All Haiku disks" 2016-11-11 10:58:10 +01:00
Background.h Tracker: style fixes to Background.h 2014-06-20 20:10:29 -04:00
BackgroundImage.cpp Tracker: delete non-BControlLook drawing code. 2015-02-14 18:49:27 -05:00
BackgroundImage.h Tracker: style fixes to BackgroundImage 2014-06-20 20:10:30 -04:00
Bitmaps.cpp Tracker: don't call debugger if a file has an invalid resource 2022-03-20 12:28:15 +00:00
Bitmaps.h Tracker: style fixes to Bitmaps 2014-06-20 20:10:31 -04:00
Commands.h Tracker: Add thumbnail support 2021-08-27 11:39:13 +00:00
ContainerWindow.cpp Tracker: Use default menu font instead of plain font for context menus. 2022-09-30 05:05:33 -04:00
ContainerWindow.h BFilePanel: save state less often 2022-07-17 07:37:10 +00:00
CountView.cpp Tracker: Adjust metrics of the CountView. 2022-08-26 22:04:50 -04:00
CountView.h Tracker: Eliminate the fixed count-view size altogether. 2020-07-05 19:44:19 -04:00
DesktopPoseView.cpp Tracker: use the Layout API wherever possible. 2015-01-27 01:43:51 -05:00
DesktopPoseView.h Tracker: use the Layout API wherever possible. 2015-01-27 01:43:51 -05:00
DeskWindow.cpp Tracker: Fix selected text drawing with light desktop colors, and delayed update for inactive text colors on desktop 2023-01-28 20:15:21 +00:00
DeskWindow.h Tracker: get rid of fTrashContextMenu member from DeskWindow... 2015-05-08 13:07:35 -04:00
DialogPane.cpp Remove MouseDownThread and its usages 2020-05-07 22:08:23 +00:00
DialogPane.h Remove MouseDownThread and its usages 2020-05-07 22:08:23 +00:00
DirMenu.cpp DirMenu.cpp: fix memory leak. 2017-01-30 21:09:05 +01:00
EntryIterator.cpp Adjust all struct dirent creations (again), this time to use offsetof(). 2021-12-01 17:05:40 -05:00
EntryIterator.h Tracker: style fixes 2014-08-10 15:06:34 -04:00
FavoritesMenu.cpp Tracker: delete un-needed #includes. 2015-02-28 12:54:36 -05:00
FavoritesMenu.h Tracker: style fixes to FavoritesMenu 2014-06-20 21:01:42 -04:00
FBCPadding.cpp Tracker: Move deprecated FSUtils functions to FBCPadding.cpp. 2016-07-21 22:19:01 -04:00
FilePanel.cpp BFilePanel: use position from FilePanelSettings 2022-07-06 16:03:10 +00:00
FilePanelPriv.cpp Tracker: Rework file-panel initialization. 2022-08-26 23:49:24 -04:00
FilePanelPriv.h BFilePanel: use position from FilePanelSettings 2022-07-06 16:03:10 +00:00
FindPanel.cpp Tracker: Restore search criteria when edit query 2022-06-08 21:31:01 +00:00
FindPanel.h tracker/FindPanel: style cleanup 2022-06-08 21:30:34 +00:00
FSClipboard.cpp Tracker kit: Fix memory leak 2019-12-07 09:32:09 +00:00
FSClipboard.h Tracker: style fixes to FSClipboard 2014-06-20 21:01:47 -04:00
FSUndoRedo.cpp Tracker: style fixes to FSUndoRedo 2014-06-20 21:01:49 -04:00
FSUndoRedo.h Tracker: Add missing close-paren from previous commit. 2019-07-31 18:29:22 -04:00
FSUtils.cpp Tracker: Invoke Sync() during the copy operation. 2022-09-09 16:21:03 -04:00
FSUtils.h Tracker: Remove "launch broken link" cruft. 2018-12-15 18:11:20 -05:00
GroupedMenu.cpp Tracker: style fixes to GroupedMenu 2014-06-20 21:01:51 -04:00
GroupedMenu.h Tracker: style fixes to GroupedMenu 2014-06-20 21:01:51 -04:00
IconCache.cpp Tracker: fix build with DEBUG=1 2022-09-27 19:12:54 +00:00
IconCache.h Tracker: Refactor IconCache size handling and usages. 2022-08-26 17:24:44 -04:00
IconMenuItem.cpp Tracker & desklink: Pass -1 to GetTrackerIcon for sizing. 2022-08-31 16:21:53 -04:00
Jamfile Tracker: Move thumbnail-manipulation code to its own file. 2022-04-25 23:10:03 -04:00
libtracker.rdef * Applied libtracker localization patch from T.Murai (a.k.a mt) with some modifications (see below). 2010-07-13 12:39:53 +00:00
LICENSE
LocalizedFolders.h Remove B_COMMON*_DIRECTORY and kCommon*Directory constants 2013-10-04 02:30:30 +02:00
LockingList.h Tracker: LockingList.h style fixes (minor) 2014-06-20 21:01:56 -04:00
MimeTypeList.cpp Tracker: init member var, CID 610121 2014-08-10 15:04:53 -04:00
MimeTypeList.h Tracker: init member var, CID 610121 2014-08-10 15:04:53 -04:00
MimeTypes.h Tracker: tiny style fix to MimTypes.h 2014-06-20 21:01:59 -04:00
MiniMenuField.cpp Tracker: Use Set*UIColor, improved font awareness. 2016-01-04 07:24:41 -05:00
MiniMenuField.h Tracker: MiniMenuField style fixes 2014-06-20 21:02:00 -04:00
Model.cpp Tracker: Always use thumb attr when there is one 2022-12-12 10:26:58 +00:00
Model.h Tracker: fix logic to use custom icons. 2021-12-31 17:41:28 +00:00
MountMenu.cpp Tracker: NavMenu and MountMenu should not set font themselves (inherit from BMenu instead) 2023-01-12 17:23:13 +00:00
MountMenu.h Tracker: style fixes to MountMenu class 2014-06-20 21:02:03 -04:00
Navigator.cpp Tracker: Use BControlLook::ComposeIconSize. 2022-08-25 16:48:56 -04:00
Navigator.h Tracker: Fix issue with vertical scroll bar border 2015-10-14 22:29:52 -07:00
NavMenu.cpp Tracker: NavMenu and MountMenu should not set font themselves (inherit from BMenu instead) 2023-01-12 17:23:13 +00:00
NodePreloader.cpp Tracker: Refactor IconCache size handling and usages. 2022-08-26 17:24:44 -04:00
NodePreloader.h Tracker: NodePreloader style fixes 2014-06-20 21:02:08 -04:00
NodeWalker.cpp Adjust all struct dirent creations (again), this time to use offsetof(). 2021-12-01 17:05:40 -05:00
NodeWalker.h Tracker: NodeWalker style fixes 2014-06-20 21:02:09 -04:00
OpenWithWindow.cpp Remove "font size / 12" calculations from various places. 2022-09-28 19:36:59 -04:00
OpenWithWindow.h Tracker: Improve repeated apps in Open with... menu 2022-07-18 16:02:33 +00:00
OverrideAlert.cpp Tracker: Use main screen if window is NULL 2014-08-10 15:07:31 -04:00
OverrideAlert.h Tracker: OverrideAlert style fixes 2014-06-20 21:02:12 -04:00
PendingNodeMonitorCache.cpp Tracker: style fixes to PendingNodeMonitorCache 2014-06-20 21:02:14 -04:00
PendingNodeMonitorCache.h Tracker: style fixes to PendingNodeMonitorCache 2014-06-20 21:02:14 -04:00
Pose.cpp Tracker: Fix selected text drawing with light desktop colors, and delayed update for inactive text colors on desktop 2023-01-28 20:15:21 +00:00
Pose.h Tracker: Refactor IconCache size handling and usages. 2022-08-26 17:24:44 -04:00
PoseList.cpp Tracker: delete un-needed #includes. 2015-02-28 12:54:36 -05:00
PoseList.h Tracker: style fixes to PoseList class 2014-06-20 21:02:16 -04:00
PoseView.cpp Tracker: Drop ShowHideSelection setting. 2023-01-28 15:24:23 -05:00
PoseView.h Tracker: Drop ShowHideSelection setting. 2023-01-28 15:24:23 -05:00
PoseViewScripting.cpp Style, no functional changes 2017-11-16 19:47:59 +01:00
QueryContainerWindow.cpp Tracker: use the Layout API wherever possible. 2015-01-27 01:43:51 -05:00
QueryContainerWindow.h Tracker: Style fixes 2015-03-03 18:47:02 -05:00
QueryPoseView.cpp Tracker: Correct size of Name column in Query view. 2022-09-09 14:49:22 -04:00
QueryPoseView.h Tracker: Change QueryPoseView over to using a BRefFilter. 2016-05-14 13:22:14 -04:00
RecentItems.cpp Tracker: init default member values, CID 609845 2014-08-10 15:04:50 -04:00
RecentItems.h Tracker: style fixes to RecentItems 2014-06-20 21:29:28 -04:00
RegExp.cpp Tracker: localize RegExp errors. 2016-09-25 15:10:12 +02:00
RegExp.h Tracker: RegExp style fixes, pointer style 2014-08-10 15:04:49 -04:00
SelectionWindow.cpp Tracker: Use layout management for "Select..." window 2017-06-12 19:31:06 +02:00
SelectionWindow.h Tracker: style fixes to SelectionWindow 2014-06-20 21:29:31 -04:00
Settings.cpp tracker: Fix wrong type of arguments to formatting function 2021-04-25 09:00:53 +00:00
Settings.h Tracker: style fixes to Settings class 2014-06-20 21:29:33 -04:00
SettingsViews.cpp Tracker: Add thumbnail support 2021-08-27 11:39:13 +00:00
SettingsViews.h Tracker: Add thumbnail support 2021-08-27 11:39:13 +00:00
SlowContextPopup.cpp Tracker: delete un-needed #includes. 2015-02-28 12:54:36 -05:00
SlowContextPopup.h Tracker: SlowContextPopup style fixes 2014-06-20 21:29:37 -04:00
SlowMenu.cpp Tracker: SlowMenu style fixes 2014-06-20 21:29:39 -04:00
SlowMenu.h Tracker: SlowMenu style fixes 2014-06-20 21:29:39 -04:00
StatusWindow.cpp Tracker: add some time_t overflow checks in StatusWindow 2020-05-08 22:07:08 +00:00
StatusWindow.h Tracker: style fixes to StatusWindow classes 2014-06-20 21:29:40 -04:00
TaskLoop.cpp Remove a lot of unused constants. 2018-11-24 19:21:16 -05:00
TaskLoop.h Tracker: style fixes to TemplatesMenu 2014-06-20 21:29:42 -04:00
TemplatesMenu.cpp Tracker: style fixes to TemplatesMenu 2014-06-20 21:29:42 -04:00
TemplatesMenu.h Tracker: style fixes to TemplatesMenu 2014-06-20 21:29:42 -04:00
Tests.cpp Tracker: fix build with DEBUG=1 2022-09-27 19:12:54 +00:00
Tests.h
TextWidget.cpp Tracker: Refactor IconCache size handling and usages. 2022-08-26 17:24:44 -04:00
TextWidget.h BTextView: Fix Tracker edit name 2021-06-20 14:46:53 +00:00
Thumbnails.cpp Thumbnail: fix off-by-one of Height/Width attribute 2022-12-08 20:38:57 +00:00
Thumbnails.h Tracker: Refactor IconCache size handling and usages. 2022-08-26 17:24:44 -04:00
TitleView.cpp Tracker: Line TitleView up with scroll bar arrow 2017-11-18 16:25:01 -08:00
TitleView.h Tracker: 32x32 icon size option in list mode 2016-09-03 12:06:44 -07:00
Tracker.cpp Tracker: Use NodeRef in update thumb message 2022-07-19 00:38:26 +00:00
Tracker.h Tracker and Open Target Folder: Select result 2015-03-03 18:47:06 -05:00
TrackerIcons.h Use new Device_NAS vector icon for shared volumes 2016-09-17 18:24:44 +02:00
TrackerIcons.rdef Use new Device_NAS vector icon for shared volumes 2016-09-17 18:24:44 +02:00
TrackerInitialState.cpp tracker: write default columns to correct attr 2023-03-20 22:14:28 +00:00
TrackerScripting.cpp Style, no functional changes 2017-11-16 19:47:59 +01:00
TrackerSettings.cpp Tracker: Enable thumbnail generation by default. 2022-09-30 05:05:40 -04:00
TrackerSettings.h Tracker: Add thumbnail support 2021-08-27 11:39:13 +00:00
TrackerSettingsWindow.cpp Tracker: Use Set*UIColor, improved font awareness. 2016-01-04 07:24:41 -05:00
TrackerSettingsWindow.h Move automount settings to the Tracker preferences 2014-07-16 14:46:27 +02:00
TrackerString.cpp TrackerString.cpp: fix comparison between pointer and integer 2016-07-10 17:11:23 +02:00
TrackerString.h Tracker: Remove [I]Find* functions from TrackerString. 2015-04-26 20:17:20 -04:00
TrashWatcher.cpp Tracker: Remove adding BeOS trash icons in trash watcher. 2016-07-19 23:57:26 +02:00
TrashWatcher.h Tracker: style fixes to TrashWatcher 2014-06-20 21:29:58 -04:00
Utilities.cpp Tracker: Use BControlLook::ComposeIconSize. 2022-08-25 16:48:56 -04:00
Utilities.h Tracker: Move thumbnail-manipulation code to its own file. 2022-04-25 23:10:03 -04:00
ViewState.cpp Tracker: Overhaul list column size initialization and storage. 2022-08-31 23:59:00 -04:00
ViewState.h Tracker: Overhaul list column size initialization and storage. 2022-08-31 23:59:00 -04:00
VirtualDirectoryEntryList.cpp Avoid using unions for LongDirEntry. 2021-11-23 16:36:18 -05:00
VirtualDirectoryEntryList.h Tracker: style fixes to VirtualDirectoryEntryList 2014-06-20 21:30:03 -04:00
VirtualDirectoryManager.cpp Tracker: Fix integer overflow 2014-07-18 17:58:12 -04:00
VirtualDirectoryManager.h Tracker: style fixes to VirtualDirectoryManager 2014-06-20 21:30:05 -04:00
VirtualDirectoryPoseView.cpp Avoid using unions for LongDirEntry. 2021-11-23 16:36:18 -05:00
VirtualDirectoryPoseView.h Tracker: use the Layout API wherever possible. 2015-01-27 01:43:51 -05:00
VirtualDirectoryWindow.cpp Tracker: Remove list view menu from virtual directory window. 2019-02-11 16:07:22 -05:00
VirtualDirectoryWindow.h Tracker: Add PoseView() method 2015-03-03 18:47:03 -05:00
WidgetAttributeText.cpp Tracker: Truncate long file names in middle 2021-08-27 17:56:54 +00:00
WidgetAttributeText.h Adjust all BDateFormat callers again. 2014-10-01 16:35:34 +02:00