rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=34da232ba929f0ffedb0f3d9f8118e77ec96c300

commit 34da232ba929f0ffedb0f3d9f8118e77ec96c300
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Thu Jan 28 16:24:48 2016 +0200

    property_sound: set the correct sample compression level
    
    Change-Id: I1640702b91eb62d57868277fc89be66a7d6fc1f9
---
 src/bin/ui/editors/sound_editor.c | 2 ++
 src/bin/ui/property_sound.c       | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/src/bin/ui/editors/sound_editor.c 
b/src/bin/ui/editors/sound_editor.c
index 8d8ea09..701c9f9 100644
--- a/src/bin/ui/editors/sound_editor.c
+++ b/src/bin/ui/editors/sound_editor.c
@@ -138,6 +138,8 @@ _grid_sel_sample(void *data,
    snd_data->markup = edit->markup;
    snd_data->gengrid = edit->gengrid;
    snd_data->sound_type = SOUND_TYPE_SAMPLE;
+   snd_data->compression_type = item->comp;
+   snd_data->quality = item->rate;
 
    res = pm_resource_get(ap.project->sounds, item->sound_name);
    if (!res->used_in) elm_object_disabled_set(edit->btn_del, false);
diff --git a/src/bin/ui/property_sound.c b/src/bin/ui/property_sound.c
index b1e4f16..0c707cc 100644
--- a/src/bin/ui/property_sound.c
+++ b/src/bin/ui/property_sound.c
@@ -752,6 +752,9 @@ _sample_info_update(Sound_Prop_Data *pd, 
Selected_Sound_Data *snd_data)
    item = elm_object_part_content_get(pd->snd_data.size, 
"elm.swallow.content");
    elm_object_text_set(item, size);
 
+   ewe_combobox_select_item_set(pd->snd_data.compression_type, 
snd_data->compression_type);
+   elm_spinner_value_set(pd->snd_data.compression_quality , snd_data->quality);
+
    eina_stringshare_del(duration);
    eina_stringshare_del(type);
 }

-- 


Reply via email to