#include <widget_instance.h>
#include <compositor.h>
+#include <Pepper_Efl.h>
#if defined(LOG_TAG)
#undef LOG_TAG
EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
{
+ Evas_Object *pepper_obj = NULL;
+ const char *title = NULL;
+
if (!is_widget_feature_enabled()) {
return NULL;
}
return NULL;
}
- return NULL;
+ pepper_obj = elm_object_part_content_get(widget, "pepper,widget");
+ if (!pepper_obj) {
+ ErrPrint("widget object is invalid\n");
+ return NULL;
+ }
+
+ title = pepper_efl_object_title_get(pepper_obj);
+ DbgPrint("%s : title is [%s]\n", __func__, title);
+
+ return title;
}
EAPI const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)