elc_popup: atspi - make popup label accessible
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 28 Jun 2017 00:24:16 +0000 (09:24 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 28 Jun 2017 00:25:08 +0000 (09:25 +0900)
The application could customize default behavior of popup label.
There was no way to get the popup label so far.

src/lib/elementary/elc_popup.c

index a14773c..45862b0 100644 (file)
@@ -1267,7 +1267,11 @@ _title_icon_get(const Elm_Popup_Data *sd)
 static Evas_Object *
 _content_get(const Elm_Popup_Data *sd)
 {
-   return sd->content;
+   Evas_Object *ret;
+
+   ret = sd->content ? sd->content : sd->text_content_obj;
+
+   return ret;
 }
 
 static Evas_Object *