Bug 1024989 - more newt functions...
Summary: more newt functions...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: newt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-30 17:27 UTC by Dan Winship
Modified: 2014-02-19 17:44 UTC (History)
1 user (show)

Fixed In Version: newt-0.52.17-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-21 15:36:27 UTC
Type: Bug


Attachments (Terms of Use)
newtFormGet/SetScrollPosition (1.79 KB, patch)
2013-10-30 17:27 UTC, Dan Winship
no flags Details | Diff
newtEntryGet/SetCursorPosition (1.75 KB, patch)
2013-10-30 17:28 UTC, Dan Winship
no flags Details | Diff
focus callback for forms (3.21 KB, patch)
2013-10-30 17:28 UTC, Dan Winship
no flags Details | Diff

Description Dan Winship 2013-10-30 17:27:16 UTC
attached patches add three new features to newt:

  1. newtFormGetScrollPosition/newtFormSetScrollPosition
  2. newtEntryGetCursorPosition/newtEntrySetCursorPosition

     These are both because for what I'm doing, I sometimes need to
     destroy and recreate a form (after, eg, hiding or showing a
     component, or something similar that can't be done with the
     form "live"), and I want to recreate it in as close as
     possible to the same state as it was before. So these let me
     save some state before destroying it, and restore it after.

  3. implement newtComponentAddCallback for forms

     Makes newt forms use co->callback as a "focus-changed" callback.
     I'm actually not using this at the moment, but I've had various
     ideas involving it (eg, have the help line change to reflect the
     currently-focused component, or have entries that show "hint"
     text when they're empty and unfocused).

Comment 1 Dan Winship 2013-10-30 17:27:50 UTC
Created attachment 817545 [details]
newtFormGet/SetScrollPosition

Comment 2 Dan Winship 2013-10-30 17:28:12 UTC
Created attachment 817546 [details]
newtEntryGet/SetCursorPosition

Comment 3 Dan Winship 2013-10-30 17:28:38 UTC
Created attachment 817547 [details]
focus callback for forms

Comment 4 Miroslav Lichvar 2013-11-21 15:36:27 UTC
Pushed to upstream git. Thanks.


Note You need to log in before you can comment on or make changes to this bug.