summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-11 10:28:29 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-15 16:45:55 +0200
commit87ba0163234a5c8ce8ffd8dc08269c932d7d4765 (patch)
treee7d9321dc62314c31d82a071d6ceb7843ea3b1a0
parent24d7c9a673cc3f9027ba2cd6684c6993131262d6 (diff)
atspi: expose elm_image "activate" action through d-bus
-rw-r--r--src/lib/elm_image.c9
-rw-r--r--src/lib/elm_image.eo4
2 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index b435243c3..73ca0a68d 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -14,6 +14,9 @@
14#include "elm_interface_atspi_accessible.h" 14#include "elm_interface_atspi_accessible.h"
15#include "elm_interface_atspi_accessible.eo.h" 15#include "elm_interface_atspi_accessible.eo.h"
16 16
17#define ELM_INTERFACE_ATSPI_WIDGET_ACTION_PROTECTED
18#include "elm_interface_atspi_widget_action.eo.h"
19
17#define FMT_SIZE_T "%zu" 20#define FMT_SIZE_T "%zu"
18 21
19#define MY_CLASS ELM_IMAGE_CLASS 22#define MY_CLASS ELM_IMAGE_CLASS
@@ -1342,6 +1345,12 @@ _elm_image_elm_interface_atspi_image_extents_get(Eo *obj, Elm_Image_Data *sd EIN
1342 elm_image_object_size_get(obj, w, h); 1345 elm_image_object_size_get(obj, w, h);
1343} 1346}
1344 1347
1348EOLIAN const Elm_Action *
1349_elm_image_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Image_Data *pd EINA_UNUSED)
1350{
1351 return &key_actions[0];
1352}
1353
1345 1354
1346// A11Y - END 1355// A11Y - END
1347 1356
diff --git a/src/lib/elm_image.eo b/src/lib/elm_image.eo
index b26b2d5d2..b0e89ffb2 100644
--- a/src/lib/elm_image.eo
+++ b/src/lib/elm_image.eo
@@ -1,4 +1,5 @@
1class Elm_Image (Elm_Widget, Evas.Clickable_Interface, Elm_Interface_Atspi_Image) 1class Elm_Image (Elm_Widget, Evas.Clickable_Interface,
2 Elm_Interface_Atspi_Image, Elm_Interface_Atspi_Widget_Action)
2{ 3{
3 eo_prefix: elm_obj_image; 4 eo_prefix: elm_obj_image;
4 properties { 5 properties {
@@ -548,6 +549,7 @@ class Elm_Image (Elm_Widget, Evas.Clickable_Interface, Elm_Interface_Atspi_Image
548 Elm_Widget.theme_apply; 549 Elm_Widget.theme_apply;
549 Elm_Widget.event; 550 Elm_Widget.event;
550 Elm_Interface_Atspi_Image.extents.get; 551 Elm_Interface_Atspi_Image.extents.get;
552 Elm_Interface_Atspi_Widget_Action.elm_actions.get;
551 } 553 }
552 events { 554 events {
553 drop; 555 drop;