From 22409e7d5ea9fd8f3d38fa180538501b45603924 Mon Sep 17 00:00:00 2001 From: Patryk Kaczmarek Date: Tue, 25 Aug 2015 17:51:19 +0200 Subject: [PATCH] [Accessibility] Add Value interface to progressbars to recieve current value @tizen_feature Signed-off-by: Patryk Kaczmarek Conflicts: src/lib/elm_progressbar.eo Change-Id: I15d81bce458ce5d60c7af0eaa4441be134df3f69 --- src/lib/elm_progressbar.c | 12 ++++++++++++ src/lib/elm_progressbar.eo | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_progressbar.c b/src/lib/elm_progressbar.c index 18630cb..f501844 100644 --- a/src/lib/elm_progressbar.c +++ b/src/lib/elm_progressbar.c @@ -3,6 +3,7 @@ #endif #define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED +#define ELM_INTERFACE_ATSPI_VALUE_PROTECTED #include @@ -563,6 +564,17 @@ _elm_progressbar_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Elm_ return EINA_FALSE; } +///////////////////////////////////////////////////////// +//TIZENONLY (20150825) Add atspi value interface to progressbar + +EOLIAN static void +_elm_progressbar_elm_interface_atspi_value_value_and_text_get(Eo *obj, Elm_Progressbar_Data *_pd, double *value, const char **text) +{ + if (value) *value = _pd->val; +} + +// + EOLIAN static void _elm_progressbar_class_constructor(Eo_Class *klass) { diff --git a/src/lib/elm_progressbar.eo b/src/lib/elm_progressbar.eo index 827581c..f67bae5 100644 --- a/src/lib/elm_progressbar.eo +++ b/src/lib/elm_progressbar.eo @@ -1,4 +1,4 @@ -class Elm.Progressbar (Elm.Layout) +class Elm.Progressbar (Elm.Layout, Elm_Interface_Atspi_Value) { eo_prefix: elm_obj_progressbar; methods { @@ -166,6 +166,7 @@ class Elm.Progressbar (Elm.Layout) Elm.Layout.text_aliases.get; Elm.Layout.content_aliases.get; Elm.Layout.sizing_eval; + Elm_Interface_Atspi_Value.value_and_text.get; } events { changed; -- 2.7.4