Edje_Edit: save files name instead of full path on sound add 88/94388/3
authorVitalii Vorobiov <vi.vorobiov@samsung.com>
Fri, 28 Oct 2016 12:56:28 +0000 (15:56 +0300)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 4 Nov 2016 00:27:56 +0000 (17:27 -0700)
Since file will be inside of edj file, there is no need in having full path to
the place from where it was imported

@fix

Change-Id: I8513928103d74267cb2d1b9080384506d41f2a74
Signed-off-by: Vitalii Vorobiov <vi.vorobiov@samsung.com>
src/lib/edje/edje_edit.c

index 6f9c45d..98ae5e0 100644 (file)
@@ -1183,7 +1183,7 @@ edje_edit_sound_sample_add(Evas_Object *obj, const char *name, const char *snd_s
    sound_sample = ed->file->sound_dir->samples +
      ed->file->sound_dir->samples_count - 1;
    sound_sample->name = (char *)eina_stringshare_add(name);
-   sound_sample->snd_src = (char *)eina_stringshare_add(snd_src);
+   sound_sample->snd_src = (char *)eina_stringshare_add(ecore_file_file_get(snd_src));
    sound_sample->compression = EDJE_SOUND_SOURCE_TYPE_INLINE_RAW;
    sound_sample->id = id;
    sound_sample->mode = 0;