regedit: search values and repeat search from cursor positions

Enterprise / Samba - Chris Davis [gmail.com] - 1 October 2014 07:32 UTC

Recovering the search position from the cursors is safer than retaining a pointer to the last node, as the pointer will become invalid if the user deletes the item or refreshes the cache.

bcab659 regedit: search values and repeat search from cursor positions
source3/utils/regedit.c | 186 +++++++++++++++++++++++--------------
source3/utils/regedit.h | 1 -
source3/utils/regedit_treeview.c | 47 ++++++++++
source3/utils/regedit_treeview.h | 1 +
source3/utils/regedit_valuelist.c | 100 +++++++++++++++++---
source3/utils/regedit_valuelist.h | 13 ++-
6 files changed, 265 insertions(+), 83 deletions(-)

Upstream: gitweb.samba.org


  • Share