rimmed pushed a commit to branch master.

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

commit cfa70c4347cdda5c23f4676e078b795bf2c36d4f
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Thu Apr 14 10:12:57 2016 +0300

    property_sound: disable play button if sound not selected
    
    Change-Id: Ifdbe41262111e8f333553960a73fce63cf373c66
---
 src/bin/ui/property_sound.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/ui/property_sound.c b/src/bin/ui/property_sound.c
index e9b4ddf..6394091 100644
--- a/src/bin/ui/property_sound.c
+++ b/src/bin/ui/property_sound.c
@@ -529,6 +529,7 @@ _sound_player_create(Evas_Object *parent, Sound_Prop_Data 
*edit)
    BT_ADD(edit->sound_player, edit->player_data.play, icon, 
"media_player/play");
    elm_object_part_content_set(edit->sound_player, "swallow.button.play", 
edit->player_data.play);
    evas_object_smart_callback_add(edit->player_data.play, "clicked", 
_on_play_cb, edit);
+   elm_object_disabled_set(edit->player_data.play, true);
 
    edit->player_data.pause = elm_button_add(edit->sound_player);
    elm_object_style_set(edit->player_data.pause, "anchor");
@@ -730,6 +731,7 @@ _on_grid_clicked(void *data,
            break;
         }
      }
+   elm_object_disabled_set(edit->player_data.play, false);
 }
 
 static void
@@ -745,6 +747,8 @@ _sound_unselected(void *data,
    elm_object_text_set(pd->snd_data.size, _("-"));
    elm_object_text_set(pd->snd_data.tone_name, _("-"));
    elm_object_text_set(pd->snd_data.duration, _("-"));
+
+   elm_object_disabled_set(pd->player_data.play, true);
 }
 
 Evas_Object *

-- 


Reply via email to