jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f53a739e0e9ef3de824c549fa14e758e194e2dde

commit f53a739e0e9ef3de824c549fa14e758e194e2dde
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Tue Jun 7 21:42:46 2016 +0200

    ecore_cocoa: simplify clipboard functions naming
    
    ecore_cocoa_selection_clipboard_xxxx() have been renamed into
    ecore_cocoa_clipboard_xxxx() and they have nothing to do with
    selection, only with clipboard.
    
    Since the API is not stable yet, I can change it.
---
 src/lib/ecore_cocoa/Ecore_Cocoa.h     | 10 +++++-----
 src/lib/ecore_cocoa/ecore_cocoa_cnp.m | 14 +++++++-------
 src/lib/elementary/elm_cnp.c          |  6 +++---
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h 
b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index a94785c..7f7ca6d 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
  * @param type
  * @return EINA_TRUE on success, EINA_FALSE on failure
  */
-EAPI Eina_Bool ecore_cocoa_selection_clipboard_set(const void *data,
+EAPI Eina_Bool ecore_cocoa_clipboard_set(const void *data,
                                                    int size,
                                                    Ecore_Cocoa_Cnp_Type type);
 
@@ -487,15 +487,15 @@ EAPI Eina_Bool ecore_cocoa_selection_clipboard_set(const 
void *data,
  * @c retrieved_types will contain ECORE_COCOA_CNP_TYPE_STRING and the data
  * will be a C string (char*) that must be freed after use.
  */
-EAPI void *ecore_cocoa_selection_clipboard_get(int *size,
-                                               Ecore_Cocoa_Cnp_Type type,
-                                               Ecore_Cocoa_Cnp_Type 
*retrieved_types)
+EAPI void *ecore_cocoa_clipboard_get(int *size,
+                                     Ecore_Cocoa_Cnp_Type type,
+                                     Ecore_Cocoa_Cnp_Type *retrieved_types)
    EINA_WARN_UNUSED_RESULT;
 
 /**
  * Deletes the contents of the Cocoa clipboard
  */
-EAPI void ecore_cocoa_selection_clipboard_clear(void);
+EAPI void ecore_cocoa_clipboard_clear(void);
 
 /**
  * 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 efe3cbd..da2db90 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_cnp.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_cnp.m
@@ -10,9 +10,9 @@
 #import "ecore_cocoa_app.h"
 
 EAPI Eina_Bool
-ecore_cocoa_selection_clipboard_set(const void           *data,
-                                    int                   size,
-                                    Ecore_Cocoa_Cnp_Type  type)
+ecore_cocoa_clipboard_set(const void           *data,
+                          int                   size,
+                          Ecore_Cocoa_Cnp_Type  type)
 {
    NSMutableArray *objects;
    NSString *str = nil;
@@ -62,9 +62,9 @@ ecore_cocoa_selection_clipboard_set(const void           
*data,
 
 
 EAPI void *
-ecore_cocoa_selection_clipboard_get(int                  *size,
-                                    Ecore_Cocoa_Cnp_Type  type,
-                                    Ecore_Cocoa_Cnp_Type *retrieved_types)
+ecore_cocoa_clipboard_get(int                  *size,
+                          Ecore_Cocoa_Cnp_Type  type,
+                          Ecore_Cocoa_Cnp_Type *retrieved_types)
 {
    NSMutableArray *classes;
    void *data;
@@ -167,7 +167,7 @@ fail:
 }
 
 EAPI void
-ecore_cocoa_selection_clipboard_clear(void)
+ecore_cocoa_clipboard_clear(void)
 {
    [[NSPasteboard generalPasteboard] clearContents];
 }
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 9e03260..eafdffc 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -4059,7 +4059,7 @@ _job_pb_cb(void *data)
 
         /* Pass to cocoa clipboard */
         type = _elm_sel_format_to_ecore_cocoa_cnp_type(sel->requestformat);
-        pbdata = ecore_cocoa_selection_clipboard_get(&pbdata_len, type, 
&get_type);
+        pbdata = ecore_cocoa_clipboard_get(&pbdata_len, type, &get_type);
 
         ddata.format = ELM_SEL_FORMAT_NONE;
         if (get_type & ECORE_COCOA_CNP_TYPE_STRING)
@@ -4123,7 +4123,7 @@ _cocoa_elm_cnp_selection_set(Ecore_Cocoa_Window *win,
         sel->selbuf[buflen] = 0;
         sel->buflen = buflen;
         type = _elm_sel_format_to_ecore_cocoa_cnp_type(format);
-        ecore_cocoa_selection_clipboard_set(selbuf, buflen, type);
+        ecore_cocoa_clipboard_set(selbuf, buflen, type);
      }
 
    return ok;
@@ -4160,7 +4160,7 @@ _cocoa_elm_cnp_selection_clear(Evas_Object  *obj       
EINA_UNUSED,
    sel->loss_data = NULL;
    ELM_SAFE_FREE(sel->selbuf, free);
    sel->buflen = 0;
-   ecore_cocoa_selection_clipboard_clear();
+   ecore_cocoa_clipboard_clear();
 
    return EINA_TRUE;
 }

-- 


Reply via email to