return 0;
}
-static void __pepper_cb(const char *app_id, const char *event, Evas_Object *obj, void *data)
+static void __tbm_cb(const char *app_id, const char *event, Evas_Object *obj, void *data)
{
int w, h, x, y;
Evas_Object *surface = obj;
API int watch_manager_set_resource_id(int resource_id)
{
- return _compositor_set_handler_by_rid(resource_id, __pepper_cb, NULL);
+ return _compositor_set_handler_by_rid(resource_id, __tbm_cb, NULL);
}
API int watch_manager_get_resource_id(Evas_Object *watch, int *resource_id)
app_control_set_operation(*app_control, APP_CONTROL_OPERATION_MAIN);
- _compositor_set_handler(app_id, __pepper_cb, NULL);
+ _compositor_set_handler(app_id, __tbm_cb, NULL);
app_control_to_bundle(*app_control, &b);
if (b) {
DbgPrint("widget added: %s", instance_id);
evas_object_geometry_get(surface, &x, &y, &w, &h);
DbgPrint("widget geometry:%d %d %d %d", x, y, w, h);
- elm_object_part_content_set(info->layout, "pepper,widget", surface);
+ elm_object_part_content_set(info->layout, "tbm,widget", surface);
if (!info->disable_preview)
elm_object_signal_emit(info->layout, "disable", "preview");
*/
} else if (strcmp(event, "removed") == 0) {
DbgPrint("widget removed: %s", instance_id);
- elm_object_part_content_set(info->layout, "pepper,widget", NULL);
+ elm_object_part_content_set(info->layout, "tbm,widget", NULL);
if (info->disable_preview)
elm_object_signal_emit(info->layout, "enable", "previewe");
} else {
/**
* @note
- * Layout will be resized, consequently, the pepper object also will be resized.
+ * Layout will be resized, consequently, the tbm object also will be resized.
*/
}
}
EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
{
- Evas_Object *pepper_obj = NULL;
+ Evas_Object *tbm_obj = NULL;
const char *title = NULL;
struct widget_info *info;
return NULL;
}
- pepper_obj = elm_object_part_content_get(widget, "pepper,widget");
- if (!pepper_obj) {
+ tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
+ if (!tbm_obj) {
set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
ErrPrint("widget object is invalid");
return NULL;
info->cancel_click = 1;
- remote_obj = elm_object_part_content_get(widget, "pepper,widget");
+ remote_obj = elm_object_part_content_get(widget, "tbm,widget");
if (!remote_obj) {
set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
ErrPrint("widget object is invalid");
return WIDGET_ERROR_INVALID_PARAMETER;
}
- remote_obj = elm_object_part_content_get(widget, "pepper,widget");
+ remote_obj = elm_object_part_content_get(widget, "tbm,widget");
if (!remote_obj) {
ErrPrint("widget object is invalid");
return WIDGET_ERROR_INVALID_PARAMETER;
{
struct widget_info *info;
int ret = 0;
- Evas_Object *pepper_obj;
+ Evas_Object *tbm_obj;
if (!is_widget_feature_enabled()) {
return WIDGET_ERROR_NOT_SUPPORTED;
return WIDGET_ERROR_INVALID_PARAMETER;
}
- pepper_obj = elm_object_part_content_get(widget, "pepper,widget");
- if (!pepper_obj) {
+ tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
+ if (!tbm_obj) {
ErrPrint("widget object is invalid\n");
return WIDGET_ERROR_INVALID_PARAMETER;
}
if (status == WIDGET_VISIBILITY_STATUS_SHOW_FIXED) {
- ret = _compositor_freeze_visibility(pepper_obj, VISIBILITY_TYPE_UNOBSCURED);
+ ret = _compositor_freeze_visibility(tbm_obj, VISIBILITY_TYPE_UNOBSCURED);
if (ret < 0) {
ErrPrint("Fail to resume the widget(%p):(%d)", widget, ret);
return ret;
}
info->visibility_freeze = status;
} else if (status == WIDGET_VISIBILITY_STATUS_HIDE_FIXED) {
- ret = _compositor_freeze_visibility(pepper_obj, VISIBILITY_TYPE_FULLY_OBSCURED);
+ ret = _compositor_freeze_visibility(tbm_obj, VISIBILITY_TYPE_FULLY_OBSCURED);
if (ret < 0) {
ErrPrint("Fail to pause the widget(%p):(%d)", widget, ret);
return ret;
EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
{
struct widget_info *info;
- Evas_Object *pepper_obj;
+ Evas_Object *tbm_obj;
if (!is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
return WIDGET_ERROR_INVALID_PARAMETER;
}
- pepper_obj = elm_object_part_content_get(widget, "pepper,widget");
- if (!pepper_obj) {
+ tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
+ if (!tbm_obj) {
ErrPrint("widget object is invalid\n");
return WIDGET_ERROR_INVALID_PARAMETER;
}
- _compositor_thaw_visibility(pepper_obj);
+ _compositor_thaw_visibility(tbm_obj);
info->visibility_freeze = 0;
return WIDGET_ERROR_NONE;