rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=782bdb6ef2c122cdec6d856cbfb2e7ef8f678f18

commit 782bdb6ef2c122cdec6d856cbfb2e7ef8f678f18
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Thu Jan 28 15:32:42 2016 +0200

    property_sound: set the correct tone frequency
    
    Change-Id: I63fd79471e863009ef6d49502e17b589111eac61
---
 src/bin/ui/editors/sound_editor.c | 5 +++--
 src/bin/ui/property_sound.c       | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/editors/sound_editor.c 
b/src/bin/ui/editors/sound_editor.c
index 33e8a5b..8d8ea09 100644
--- a/src/bin/ui/editors/sound_editor.c
+++ b/src/bin/ui/editors/sound_editor.c
@@ -134,11 +134,11 @@ _grid_sel_sample(void *data,
 
    assert(edit != NULL);
 
+   item = elm_object_item_data_get((Elm_Gengrid_Item *)event_info);
    snd_data->markup = edit->markup;
    snd_data->gengrid = edit->gengrid;
    snd_data->sound_type = SOUND_TYPE_SAMPLE;
 
-   item = elm_object_item_data_get((Elm_Gengrid_Item *)event_info);
    res = pm_resource_get(ap.project->sounds, item->sound_name);
    if (!res->used_in) elm_object_disabled_set(edit->btn_del, false);
 
@@ -158,13 +158,14 @@ _grid_sel_tone(void *data,
 
    assert(edit != NULL);
 
+   item = elm_object_item_data_get((Elm_Gengrid_Item *)event_info);
    snd_data->markup = edit->markup;
    snd_data->gengrid = edit->gengrid;
    snd_data->sound_type = SOUND_TYPE_TONE;
    snd_data->tone = edit->tone;
+   snd_data->tone_frq = item->tone_frq;
    elm_object_disabled_set(edit->btn_del, false);
 
-   item = elm_object_item_data_get((Elm_Gengrid_Item *)event_info);
    res = pm_resource_get(ap.project->tones, 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 bf22d07..4fdf243 100644
--- a/src/bin/ui/property_sound.c
+++ b/src/bin/ui/property_sound.c
@@ -774,6 +774,8 @@ _tone_info_update(Sound_Prop_Data *pd, Selected_Sound_Data 
*snd_data)
    item = elm_object_part_content_get(pd->snd_data.tone_name, 
"elm.swallow.content");
    elm_object_text_set(item, snd_data->file_name);
 
+   elm_spinner_value_set(pd->snd_data.tone_frq, snd_data->tone_frq);
+
    item = elm_object_part_content_get(pd->snd_data.duration, 
"swallow.content1");
    elm_object_text_set(item, duration);
 

-- 


Reply via email to