revert to the migration tempoary
[framework/uifw/elementary.git] / src / lib / elm_cnp_helper.c
index a7910a1..59554ca 100644 (file)
@@ -1181,16 +1181,6 @@ _convert_to_edje(Eina_List* nodes)
 }
 
 Eina_Bool
-elm_selection_selection_has_owner(void)
-{
-#ifdef HAVE_ELEMENTARY_X
-   return !!ecore_x_selection_owner_get(clipboard_atom);
-#else
-   return EINA_FALSE;
-#endif
-}
-
-Eina_Bool
 elm_selection_set(Elm_Sel_Type selection, Evas_Object *widget, Elm_Sel_Format format, const char *selbuf)
 {
 #ifdef HAVE_ELEMENTARY_X
@@ -1610,8 +1600,7 @@ notify_handler_text(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify)
      {
         Elm_Selection_Data ddata;
 
-        str = malloc(data->length);
-        memcpy(str, data->data, data->length);
+        str = strdup(data->data);
         ddata.x = ddata.y = 0;
         ddata.format = ELM_SEL_FORMAT_TEXT;
         ddata.data = str;