mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h: Added method
displayPopUpMenu:... to handle the display of the popup menus for themes. * Source/GSThemeMenu.m: Added default implementation. * Source/NSPopUpButtonCell.m: Call the displayPopUpMenu:... method in the method attachPopUpWithFrame:inView:. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30433 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fe5c6189cf
commit
70ab53498d
4 changed files with 43 additions and 11 deletions
|
@ -838,17 +838,12 @@ static NSImage *_pbc_image[5];
|
|||
[mr setHighlightedItemIndex: selectedItem];
|
||||
}
|
||||
|
||||
// Ask the MenuView to attach the menu to this rect
|
||||
[mr setWindowFrameForAttachingToRect: cellFrame
|
||||
onScreen: [cvWin screen]
|
||||
preferredEdge: _pbcFlags.preferredEdge
|
||||
popUpSelectedItem: selectedItem];
|
||||
|
||||
// Set to be above the main window
|
||||
[cvWin addChildWindow: [mr window] ordered: NSWindowAbove];
|
||||
|
||||
// Last, display the window
|
||||
[[mr window] orderFrontRegardless];
|
||||
// display the menu item...
|
||||
[[GSTheme theme] displayPopUpMenu: mr
|
||||
withCellFrame: cellFrame
|
||||
controlViewWindow: cvWin
|
||||
preferredEdge: _pbcFlags.preferredEdge
|
||||
selectedItem: selectedItem];
|
||||
|
||||
[nc addObserver: self
|
||||
selector: @selector(_handleNotification:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue