#include <bundle.h>
#include <aul.h>
+#include <aul_widget.h>
#include <dlog.h>
#include <Elementary.h>
#include <widget_errno.h>
ret = callback_data->callback.create(
(widget_context_h)instance_h,
content, w, h, callback_data->user_data);
+ aul_widget_write_log(LOG_TAG, "[%s:%d] ret : %d",
+ __FUNCTION__, __LINE__, ret);
}
return ret;
}
if (callback_data && callback_data->callback.destroy) {
ret = callback_data->callback.destroy(
(widget_context_h)instance_h,
- reason, content, callback_data->user_data);
+ reason, content, callback_data->user_data);
+ aul_widget_write_log(LOG_TAG, "[%s:%d] ret : %d",
+ __FUNCTION__, __LINE__, ret);
}
data = (struct instance_data *)widget_base_context_get_user_data(instance_h);
return -1;
}
_D("widget app is created");
+ aul_widget_write_log(LOG_TAG, "[%s:%d]", __FUNCTION__, __LINE__);
return 0;
}
callback->terminate(cb_info->user_data);
widget_base_on_terminate();
_D("widget app is terminated");
-
+ aul_widget_write_log(LOG_TAG, "[%s:%d]", __FUNCTION__, __LINE__);
return 0;
}
Evas_Object **win)
{
Evas_Object *ret_win = NULL;
- Ecore_Wl_Window *wl_win;
+ Ecore_Wl2_Window *wl_win;
struct instance_data *data;
char buffer[256];
int rots[3] = {0};
elm_win_wm_rotation_preferred_rotation_set(ret_win, -1);
elm_win_wm_rotation_available_rotations_set(ret_win, rots, 1);
- wl_win = elm_win_wl_window_get(ret_win);
+ wl_win = ecore_evas_wayland2_window_get(ecore_evas_ecore_evas_get(evas_object_evas_get(ret_win)));
if (wl_win == NULL) {
_E("failed to get wayland window"); /* LCOV_EXCL_LINE */
goto fault;
}
- ecore_wl_window_class_name_set(wl_win, id);
+ ecore_wl2_window_class_set(wl_win, id);
elm_win_aux_hint_add(ret_win, "wm.policy.win.user.geometry", "1");
widget_base_context_window_bind((widget_base_instance_h)context, id, wl_win);
evas_object_data_set(ret_win, "___PLUGID", strdup(buffer));
evas_object_event_callback_add(ret_win, EVAS_CALLBACK_DEL, __win_del_cb, NULL);
- win_id = ecore_wl_window_id_get(wl_win);
+ win_id = ecore_wl2_window_id_get(wl_win);
_D("window created: %d", win_id);
data = (struct instance_data *)widget_base_context_get_user_data(