Bug 987596 - add functions to get size/position of a component
Summary: add functions to get size/position of a component
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-07-23 18:25 UTC by Dan Winship
Modified: 2013-08-06 16:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-06 16:31:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch (1.37 KB, patch)
2013-07-23 18:25 UTC, Dan Winship
no flags Details | Diff

Description Dan Winship 2013-07-23 18:25:42 UTC
Created attachment 777426 [details]
patch

I want to have some pop-up menus in my newt-based UI. A listbox in its own window works great; the only problem is figuring out where to put it (since everything else is getting laid out via a grid).

This patch adds newtComponentGetSize() and newtComponentGetPosition(), to peek at the corresponding internal fields, so I can see where the grid put my components, and then position the menu accordingly.

Comment 1 Miroslav Lichvar 2013-07-31 11:03:04 UTC
Thanks for the patch. It's pushed to the newt git.

Comment 2 Miroslav Lichvar 2013-08-06 16:31:56 UTC
This is in newt-0.52.16-1.fc20.


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