summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2014-10-24 13:32:08 +0200
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>2015-04-06 10:25:00 +0200
commit480f641374670ef57166e8eea5280642720b5b61 (patch)
tree35dd97d67ff0852c4b763eb02186976247efa1e1
parent26552d33284776650fd4334b01fab5215fe18b36 (diff)
atspi: add 'checked' state for elm_radio
-rw-r--r--src/lib/elm_radio.c21
-rw-r--r--src/lib/elm_radio.eo1
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c
index 9bee93369..6efeb01e5 100644
--- a/src/lib/elm_radio.c
+++ b/src/lib/elm_radio.c
@@ -57,6 +57,15 @@ _state_set(Evas_Object *obj, Eina_Bool state)
57 elm_layout_signal_emit(obj, "elm,state,radio,on", "elm"); 57 elm_layout_signal_emit(obj, "elm,state,radio,on", "elm");
58 else 58 else
59 elm_layout_signal_emit(obj, "elm,state,radio,off", "elm"); 59 elm_layout_signal_emit(obj, "elm,state,radio,off", "elm");
60 if (_elm_config->atspi_mode)
61 {
62 if (sd->state)
63 {
64 elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_CHECKED, EINA_TRUE);
65 }
66 else
67 elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_CHECKED, EINA_FALSE);
68 }
60 } 69 }
61} 70}
62 71
@@ -451,4 +460,16 @@ _elm_radio_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED
451 return &atspi_actions[0]; 460 return &atspi_actions[0];
452} 461}
453 462
463EOLIAN Elm_Atspi_State_Set
464_elm_radio_elm_interface_atspi_accessible_state_set_get(Eo *obj, Elm_Radio_Data *pd EINA_UNUSED)
465{
466 Elm_Atspi_State_Set ret;
467
468 eo_do_super(obj, ELM_RADIO_CLASS, ret = elm_interface_atspi_accessible_state_set_get());
469 if (obj == elm_radio_selected_object_get(obj))
470 STATE_TYPE_SET(ret, ELM_ATSPI_STATE_CHECKED);
471
472 return ret;
473}
474
454#include "elm_radio.eo.c" 475#include "elm_radio.eo.c"
diff --git a/src/lib/elm_radio.eo b/src/lib/elm_radio.eo
index 566afdff1..7a644aa5c 100644
--- a/src/lib/elm_radio.eo
+++ b/src/lib/elm_radio.eo
@@ -112,6 +112,7 @@ class Elm_Radio (Elm_Layout, Elm_Interface_Atspi_Widget_Action)
112 Elm_Layout.text_aliases.get; 112 Elm_Layout.text_aliases.get;
113 Elm_Layout.content_aliases.get; 113 Elm_Layout.content_aliases.get;
114 Elm_Layout.sizing_eval; 114 Elm_Layout.sizing_eval;
115 Elm_Interface_Atspi_Accessible.state_set.get;
115 Elm_Interface_Atspi_Widget_Action.elm_actions.get; 116 Elm_Interface_Atspi_Widget_Action.elm_actions.get;
116 } 117 }
117 events { 118 events {