forked from enlightenment/efl
ecore_cocoa: don't make ecore_cocoa_feed_events() a public API
This commit is contained in:
parent
a2cfcc9336
commit
0dc90b265a
|
@ -129,9 +129,6 @@ EAPI int ecore_cocoa_init(void);
|
||||||
*/
|
*/
|
||||||
EAPI int ecore_cocoa_shutdown(void);
|
EAPI int ecore_cocoa_shutdown(void);
|
||||||
|
|
||||||
// XXX Why is this public?
|
|
||||||
EAPI Eina_Bool ecore_cocoa_feed_events(void *anEvent);
|
|
||||||
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Screen *
|
* Screen *
|
||||||
|
|
|
@ -172,8 +172,8 @@ _ecore_cocoa_event_key(NSEvent *event,
|
||||||
return ev;
|
return ev;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
Eina_Bool
|
||||||
ecore_cocoa_feed_events(void *anEvent)
|
_ecore_cocoa_feed_events(void *anEvent)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(anEvent, EINA_FALSE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(anEvent, EINA_FALSE);
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
|
||||||
/* Some events shall be handled by Ecore (like single non-command keys).
|
/* Some events shall be handled by Ecore (like single non-command keys).
|
||||||
* If we dispatch all events right to NSApplication, it will complain
|
* If we dispatch all events right to NSApplication, it will complain
|
||||||
* with NSBeep() when an event is not authorized */
|
* with NSBeep() when an event is not authorized */
|
||||||
to_super = ecore_cocoa_feed_events(anEvent);
|
to_super = _ecore_cocoa_feed_events(anEvent);
|
||||||
if (to_super)
|
if (to_super)
|
||||||
[super sendEvent:anEvent];
|
[super sendEvent:anEvent];
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,5 +65,8 @@ struct _Ecore_Cocoa_Window
|
||||||
/* Internal init */
|
/* Internal init */
|
||||||
Eina_Bool _ecore_cocoa_window_init(void);
|
Eina_Bool _ecore_cocoa_window_init(void);
|
||||||
|
|
||||||
|
Eina_Bool _ecore_cocoa_feed_events(void *anEvent);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue