Bug 987596

Summary: add functions to get size/position of a component
Product: [Fedora] Fedora Reporter: Dan Winship <danw>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-06 16:31:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch none

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.