forked from bartvdbraak/blender
name cocoa functions in keeping with convention with similar functions for other ghost classes.
This commit is contained in:
parent
d528b4c9bb
commit
3407a2e145
@ -1026,7 +1026,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
||||
switch (eventType) {
|
||||
case GHOST_kEventWindowClose:
|
||||
// check for index 1 and discard close for mainwindow as it would quit blender without dialog
|
||||
if ([windowsList count] > 1 && (window->get_m_window() != [windowsList objectAtIndex:1])) {
|
||||
if ([windowsList count] > 1 && (window->getCocoaWindow() != [windowsList objectAtIndex:1])) {
|
||||
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
|
||||
}
|
||||
else {
|
||||
|
@ -271,7 +271,7 @@ public:
|
||||
GHOST_TSuccess endFullScreen() const {return GHOST_kFailure;}
|
||||
|
||||
/** public function to get the window containing the OpenGL view */
|
||||
CocoaWindow *get_m_window() const {return m_window;};
|
||||
CocoaWindow *getCocoaWindow() const {return m_window;};
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user