summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-15 14:06:13 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commit6c296b3d160f757d58a6e4edf9b7109728ea6947 (patch)
tree85018da6c60e8ed093ebd31c385e4d3e1d86d2c9
parent60e2a6cbbb5ca4013eb9a3b2deba054c3b9a681b (diff)
ecore_cocoa: don't make ecore_cocoa_feed_events() a public API
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h3
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m4
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_app.m2
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_private.h3
4 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index 106b34788a..2a20050c70 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -129,9 +129,6 @@ EAPI int ecore_cocoa_init(void);
129 */ 129 */
130EAPI int ecore_cocoa_shutdown(void); 130EAPI int ecore_cocoa_shutdown(void);
131 131
132// XXX Why is this public?
133EAPI Eina_Bool ecore_cocoa_feed_events(void *anEvent);
134
135 132
136/*============================================================================* 133/*============================================================================*
137 * Screen * 134 * Screen *
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 89afc8a421..65960f2782 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -172,8 +172,8 @@ _ecore_cocoa_event_key(NSEvent *event,
172 return ev; 172 return ev;
173} 173}
174 174
175EAPI Eina_Bool 175Eina_Bool
176ecore_cocoa_feed_events(void *anEvent) 176_ecore_cocoa_feed_events(void *anEvent)
177{ 177{
178 EINA_SAFETY_ON_NULL_RETURN_VAL(anEvent, EINA_FALSE); 178 EINA_SAFETY_ON_NULL_RETURN_VAL(anEvent, EINA_FALSE);
179 179
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_app.m b/src/lib/ecore_cocoa/ecore_cocoa_app.m
index 648bf872af..b3bf1af5f4 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_app.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_app.m
@@ -90,7 +90,7 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
90 /* Some events shall be handled by Ecore (like single non-command keys). 90 /* Some events shall be handled by Ecore (like single non-command keys).
91 * If we dispatch all events right to NSApplication, it will complain 91 * If we dispatch all events right to NSApplication, it will complain
92 * with NSBeep() when an event is not authorized */ 92 * with NSBeep() when an event is not authorized */
93 to_super = ecore_cocoa_feed_events(anEvent); 93 to_super = _ecore_cocoa_feed_events(anEvent);
94 if (to_super) 94 if (to_super)
95 [super sendEvent:anEvent]; 95 [super sendEvent:anEvent];
96} 96}
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_private.h b/src/lib/ecore_cocoa/ecore_cocoa_private.h
index 9952278cea..535e08a7ed 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_private.h
+++ b/src/lib/ecore_cocoa/ecore_cocoa_private.h
@@ -65,5 +65,8 @@ struct _Ecore_Cocoa_Window
65/* Internal init */ 65/* Internal init */
66Eina_Bool _ecore_cocoa_window_init(void); 66Eina_Bool _ecore_cocoa_window_init(void);
67 67
68Eina_Bool _ecore_cocoa_feed_events(void *anEvent);
69
70
68 71
69#endif 72#endif