diff options
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r-- | src/lib/ecore_cocoa/Ecore_Cocoa.h | 10 | ||||
-rw-r--r-- | src/lib/ecore_cocoa/ecore_cocoa_cnp.m | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h index a94785cee7..7f7ca6d9d8 100644 --- a/src/lib/ecore_cocoa/Ecore_Cocoa.h +++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h | |||
@@ -472,7 +472,7 @@ EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window | |||
472 | * @param type | 472 | * @param type |
473 | * @return EINA_TRUE on success, EINA_FALSE on failure | 473 | * @return EINA_TRUE on success, EINA_FALSE on failure |
474 | */ | 474 | */ |
475 | EAPI Eina_Bool ecore_cocoa_selection_clipboard_set(const void *data, | 475 | EAPI Eina_Bool ecore_cocoa_clipboard_set(const void *data, |
476 | int size, | 476 | int size, |
477 | Ecore_Cocoa_Cnp_Type type); | 477 | Ecore_Cocoa_Cnp_Type type); |
478 | 478 | ||
@@ -487,15 +487,15 @@ EAPI Eina_Bool ecore_cocoa_selection_clipboard_set(const void *data, | |||
487 | * @c retrieved_types will contain ECORE_COCOA_CNP_TYPE_STRING and the data | 487 | * @c retrieved_types will contain ECORE_COCOA_CNP_TYPE_STRING and the data |
488 | * will be a C string (char*) that must be freed after use. | 488 | * will be a C string (char*) that must be freed after use. |
489 | */ | 489 | */ |
490 | EAPI void *ecore_cocoa_selection_clipboard_get(int *size, | 490 | EAPI void *ecore_cocoa_clipboard_get(int *size, |
491 | Ecore_Cocoa_Cnp_Type type, | 491 | Ecore_Cocoa_Cnp_Type type, |
492 | Ecore_Cocoa_Cnp_Type *retrieved_types) | 492 | Ecore_Cocoa_Cnp_Type *retrieved_types) |
493 | EINA_WARN_UNUSED_RESULT; | 493 | EINA_WARN_UNUSED_RESULT; |
494 | 494 | ||
495 | /** | 495 | /** |
496 | * Deletes the contents of the Cocoa clipboard | 496 | * Deletes the contents of the Cocoa clipboard |
497 | */ | 497 | */ |
498 | EAPI void ecore_cocoa_selection_clipboard_clear(void); | 498 | EAPI void ecore_cocoa_clipboard_clear(void); |
499 | 499 | ||
500 | /** | 500 | /** |
501 | * Set the Cocoa cursor for a given Cocoa window | 501 | * Set the Cocoa cursor for a given Cocoa window |
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_cnp.m b/src/lib/ecore_cocoa/ecore_cocoa_cnp.m index efe3cbdbef..da2db90aa0 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_cnp.m +++ b/src/lib/ecore_cocoa/ecore_cocoa_cnp.m | |||
@@ -10,9 +10,9 @@ | |||
10 | #import "ecore_cocoa_app.h" | 10 | #import "ecore_cocoa_app.h" |
11 | 11 | ||
12 | EAPI Eina_Bool | 12 | EAPI Eina_Bool |
13 | ecore_cocoa_selection_clipboard_set(const void *data, | 13 | ecore_cocoa_clipboard_set(const void *data, |
14 | int size, | 14 | int size, |
15 | Ecore_Cocoa_Cnp_Type type) | 15 | Ecore_Cocoa_Cnp_Type type) |
16 | { | 16 | { |
17 | NSMutableArray *objects; | 17 | NSMutableArray *objects; |
18 | NSString *str = nil; | 18 | NSString *str = nil; |
@@ -62,9 +62,9 @@ ecore_cocoa_selection_clipboard_set(const void *data, | |||
62 | 62 | ||
63 | 63 | ||
64 | EAPI void * | 64 | EAPI void * |
65 | ecore_cocoa_selection_clipboard_get(int *size, | 65 | ecore_cocoa_clipboard_get(int *size, |
66 | Ecore_Cocoa_Cnp_Type type, | 66 | Ecore_Cocoa_Cnp_Type type, |
67 | Ecore_Cocoa_Cnp_Type *retrieved_types) | 67 | Ecore_Cocoa_Cnp_Type *retrieved_types) |
68 | { | 68 | { |
69 | NSMutableArray *classes; | 69 | NSMutableArray *classes; |
70 | void *data; | 70 | void *data; |
@@ -167,7 +167,7 @@ fail: | |||
167 | } | 167 | } |
168 | 168 | ||
169 | EAPI void | 169 | EAPI void |
170 | ecore_cocoa_selection_clipboard_clear(void) | 170 | ecore_cocoa_clipboard_clear(void) |
171 | { | 171 | { |
172 | [[NSPasteboard generalPasteboard] clearContents]; | 172 | [[NSPasteboard generalPasteboard] clearContents]; |
173 | } | 173 | } |