This has been deprecated for a while and is now completely dropped.
return NULL;
}
- view = eo_add_custom(ELM_APP_SERVER_VIEW_CLASS, app_server,
+ view = eo_add(ELM_APP_SERVER_VIEW_CLASS, app_server,
elm_app_server_view_constructor(NULL));
eo_do(view, id = elm_app_server_view_id_get());
Elm_App_Server_View *view;
Elm_App_Server *server;
- server = eo_add_custom(ELM_APP_SERVER_CLASS, NULL,
+ server = eo_add(ELM_APP_SERVER_CLASS, NULL,
elm_app_server_constructor(pkg, _create_view_cb));
eo_do(server, elm_app_server_title_set(pkg),
views_iter = elm_app_server_views_get(),
return;
}
- app = eo_add_custom(ELM_APP_CLIENT_CLASS, NULL,
+ app = eo_add(ELM_APP_CLIENT_CLASS, NULL,
elm_app_client_constructor(package));
eo_do(app,
eo_event_callback_add(ELM_APP_CLIENT_EVENT_VIEW_LIST_LOADED,
evas_3d_material_color_set(EVAS_3D_MATERIAL_SPECULAR, 0.1, 0.1, 0.1, 1.0),
evas_3d_material_shininess_set(50.0));
- skybox_mesh_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ skybox_mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
eo_do(root_node, evas_3d_node_member_add(skybox_mesh_node));
eo_do(skybox_mesh_node, evas_3d_node_mesh_add(skybox_mesh));
camera_right_vec.y = 0.0;
camera_right_vec.z = 0.0;
- camera_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ camera_node = eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
eo_do(camera_node,
evas_3d_node_camera_set(camera),
evas_3d_light_diffuse_set(1.0, 1.0, 1.0, 1.0),
evas_3d_light_specular_set(0.2, 0.2, 0.2, 1.0));
- light_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ light_node = eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
eo_do(light_node,
evas_3d_node_light_set(light),
evas_3d_material_color_set(EVAS_3D_MATERIAL_SPECULAR, 0.1, 0.1, 0.1, 1.0),
evas_3d_material_shininess_set(50.0));
- mesh_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
eo_do(root_node, evas_3d_node_member_add(mesh_node));
eo_do(mesh_node, evas_3d_node_mesh_add(mesh));
scene = eo_add(EVAS_3D_SCENE_CLASS, evas);
/* Add a root node for the scene. */
- root_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ root_node = eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
skybox_setup();
evas_3d_camera_projection_perspective_set(20.0, 1.0, 2.0, 50.0));
data->camera_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
eo_do(data->camera_node,
evas_3d_node_camera_set(data->camera),
evas_3d_light_specular_set(1.0, 1.0, 1.0, 1.0));
data->light_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
eo_do(data->light_node,
evas_3d_node_light_set(data->light),
evas_3d_mesh_frame_material_set(0, data->material));
data->mesh_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
eo_do(data->root_node, evas_3d_node_member_add(data->mesh_node));
eo_do(data->mesh_node, evas_3d_node_mesh_add(data->mesh));
evas_3d_scene_background_color_set(0.0, 0.0, 0.0, 0.0));
data->root_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
_camera_setup(data);
evas_3d_camera_projection_perspective_set(60.0, 1.0, 2.0, 50.0));
data->camera_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
eo_do(data->camera_node,
evas_3d_node_camera_set(data->camera),
evas_3d_light_specular_set(1.0, 1.0, 1.0, 1.0));
data->light_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
eo_do(data->light_node,
evas_3d_node_light_set(data->light),
evas_3d_mesh_frame_material_set(0, data->material));
data->mesh_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
eo_do(data->root_node, evas_3d_node_member_add(data->mesh_node));
eo_do(data->mesh_node, evas_3d_node_mesh_add(data->mesh));
evas_3d_scene_background_color_set(0.0, 0.0, 0.0, 0.0));
data->root_node =
- eo_add_custom(EVAS_3D_NODE_CLASS, evas,
+ eo_add(EVAS_3D_NODE_CLASS, evas,
evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
_camera_setup(data);
if (view)
continue;
- view = eo_add_custom(ELM_APP_CLIENT_VIEW_CLASS, eo,
+ view = eo_add(ELM_APP_CLIENT_VIEW_CLASS, eo,
elm_app_client_view_constructor(obj_path));
eina_hash_add(data->views, obj_path, view);
if (!loading_list)
EINA_SAFETY_ON_NULL_GOTO(pkg, error);
- eo_do_super(eo, MY_CLASS, eo_constructor());
-
data->views = eina_hash_string_small_new(NULL);
path = _dbus_package_to_path(pkg);
view = eina_hash_find(cdata->views, view_path);
if (!view)
{
- view = eo_add_custom(ELM_APP_CLIENT_VIEW_CLASS, eo,
+ view = eo_add(ELM_APP_CLIENT_VIEW_CLASS, eo,
elm_app_client_view_constructor(view_path));
eina_hash_add(cdata->views, view_path, view);
eo_do(eo, eo_event_callback_call(ELM_APP_CLIENT_EVENT_VIEW_CREATED,
}
EOLIAN static void
-_elm_app_client_eo_base_constructor(Eo *obj, Elm_App_Client_Data *_pd EINA_UNUSED)
-{
- eo_error_set(obj);
- ERR("Only custom constructor can be used with '%s' class", MY_CLASS_NAME);
-}
-
-EOLIAN static void
_elm_app_client_eo_base_destructor(Eo *eo, Elm_App_Client_Data *data)
{
Eldbus_Object *obj;
}
}
implements {
- Eo.Base.constructor;
Eo.Base.destructor;
}
constructors {
EINA_SAFETY_ON_NULL_GOTO(data->create_view_cb, error);
EINA_SAFETY_ON_TRUE_GOTO(!pkg, error);
- eo_do_super(obj, MY_CLASS, eo_constructor());
-
data->views = eina_hash_string_small_new(NULL);
data->PID = getpid();
data->title = eina_stringshare_add("");
new_events = elm_app_server_view_props_new_events_get(view_eet_props);
progress = elm_app_server_view_props_progress_get(view_eet_props);
- view = eo_add_custom(ELM_APP_SERVER_VIEW_CLASS, obj,
+ view = eo_add(ELM_APP_SERVER_VIEW_CLASS, obj,
elm_app_server_view_constructor(view_id));
if (!view)
continue;
eo_do_super(obj, MY_CLASS, eo_destructor());
}
-EOLIAN static void
-_elm_app_server_eo_base_constructor(Eo *obj, Elm_App_Server_Data *_pd EINA_UNUSED)
-{
- eo_error_set(obj);
- ERR("Only custom constructor can be used with '%s' class", MY_CLASS_NAME);
-}
-
#include "elm_app_server.eo.c"
}
}
implements {
- Eo.Base.constructor;
Eo.Base.destructor;
}
constructors {
const char *name,
Elm_Win_Type type)
{
- Evas_Object *obj = eo_add_custom(MY_CLASS, parent, elm_obj_win_constructor(name, type));
+ Evas_Object *obj = eo_add(MY_CLASS, parent, elm_obj_win_constructor(name, type));
eo_unref(obj);
return obj;
}
}
EOLIAN static void
-_elm_win_eo_base_constructor(Eo *obj, Elm_Win_Data *_pd EINA_UNUSED)
+_elm_win_eo_base_constructor(Eo *obj EINA_UNUSED, Elm_Win_Data *_pd EINA_UNUSED)
{
- eo_error_set(obj);
- ERR("only custom constructor can be used with '%s' class", MY_CLASS_NAME);
+ /* Do nothing. */
}
EOLIAN static Elm_Win_Type