This avoids unnecessary multiple setups when obj and subobj has connected.
static void
_elm_glview_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
// Create image to render Evas_GL Surface
Evas_Object *img = evas_object_image_filled_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, img);
eo_error_set(obj);
return;
}
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Evas_GL_API *
static void
_elm_grid_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
+
Evas_Object *grid = evas_object_grid_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, grid);
evas_object_grid_size_set(wd->resize_obj, 100, 100);
{
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj, evas_obj_type_set(MY_CLASS_NAME));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
for (i = 0; i < sizeof(priv->subs) / sizeof(priv->subs[0]); i++)
priv->subs[i].swallow = _content_aliases[i].alias;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
_elm_icon_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
Elm_Icon_Smart_Data *priv = _pd;
priv->lookup_order = ELM_ICON_LOOKUP_THEME_FDO;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Eina_Bool
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
Elm_Image_Smart_Data *priv = _pd;
priv->hit_rect = evas_object_rectangle_add(evas_object_evas_get(obj));
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Eina_Bool
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
if (!elm_layout_theme_set
(obj, "index", "base/vertical", elm_widget_style_get(obj)))
CRITICAL("Failed to set layout!");
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
elm_widget_can_focus_set(obj, EINA_FALSE);
elm_widget_highlight_ignore_set(obj, EINA_TRUE);
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj, evas_obj_type_set(MY_CLASS_NAME));
-
- elm_widget_sub_object_add(parent, obj);
}
EAPI void
{
Evas_Object *edje;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
/* has to be there *before* parent's smart_add() */
edje = edje_object_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, edje);
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
static void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
elm_widget_can_focus_set(obj, EINA_TRUE);
priv->mode = ELM_LIST_SCROLL;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
Elm_Map_Smart_Data *priv = _pd;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
edje = edje_object_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, edje);
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
#else
eo_error_set(obj);
#endif
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
evas_object_static_clip_set(rect, EINA_TRUE);
evas_object_pass_events_set(rect, EINA_TRUE);
evas_object_color_set(rect, 0, 0, 0, 0);
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
static void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
elm_widget_can_focus_set(obj, EINA_FALSE);
priv->location = elm_icon_add(obj);
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
-
elm_menu_parent_set(obj, eo_parent_get(obj));
elm_hover_target_set(sd->hv, sd->location);
elm_layout_content_set
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
priv->allow_events = EINA_TRUE;
priv->notify = edje_object_add(evas_object_evas_get(obj));
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
elm_widget_can_focus_set(obj, EINA_TRUE);
/* just to bootstrap and have theme hook to work */
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
if (!elm_layout_theme_set
(obj, "panes", "vertical", elm_widget_style_get(obj)))
CRITICAL("Failed to set layout!");
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EINA_DEPRECATED EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
elm_widget_can_focus_set(obj, EINA_FALSE);
priv->icon = elm_icon_add(obj);
evas_object_smart_callback_add
(priv->icon, "thumb,done", _on_thumb_done, obj);
- elm_widget_sub_object_add(obj, priv->icon);
-
_elm_photo_internal_image_follow(obj);
_sizing_eval(obj);
Elm_Photocam_Smart_Data *priv = _pd;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
edje = edje_object_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, edje);
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Evas_Load_Error
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
if (!ee) return;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Evas_Object *
_elm_prefs_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
static void _item_free(Elm_Prefs_Item_Node *it);
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_elm_prefs_smart_callbacks,
NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
static Eina_Bool
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
priv->horizontal = EINA_TRUE;
priv->units = eina_stringshare_add("%.0f %%");
priv->val = MIN_RATIO_LVL;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
static void
_elm_radio_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+
{
Elm_Radio_Smart_Data *priv = _pd;
Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
if (!elm_layout_theme_set(obj, "radio", "base", elm_widget_style_get(obj)))
CRITICAL("Failed to set layout!");
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
elm_widget_can_focus_set(obj, EINA_FALSE);
evas_object_event_callback_add
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
#ifdef ELM_EMAP
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
elm_widget_can_focus_set(obj, EINA_TRUE);
if (!elm_layout_theme_set
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
/* deprecated */
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
if (!elm_layout_theme_set
(obj, "segment_control", "base", elm_widget_style_get(obj)))
CRITICAL("Failed to set layout!");
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Elm_Object_Item *
{
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
elm_widget_can_focus_set(obj, EINA_FALSE);
if (!elm_layout_theme_set
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
priv->horizontal = EINA_TRUE;
priv->indicator_show = EINA_TRUE;
priv->val_max = 1.0;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
priv->count_item_pre_before = 2;
priv->count_item_pre_after = 2;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
if (!elm_layout_theme_set
(obj, "slideshow", "base", elm_widget_style_get(obj)))
CRITICAL("Failed to set layout!");
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Elm_Object_Item *
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
priv->val_max = 100.0;
priv->step = 1.0;
priv->first_interval = 0.85;
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
{
Evas_Object *table;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
table = evas_object_table_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, table);
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
elm_widget_resize_object_set(obj, elm_layout_add(obj));
if (!elm_layout_theme_set(wd->resize_obj, "thumb", "base",
Elm_Thumb_Smart_Data *sd = _pd;
sd->obj = obj;
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
Elm_Toolbar_Smart_Data *priv = _pd;
Evas_Object *edje;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
edje = edje_object_add(evas_object_evas_get(obj));
elm_widget_resize_object_set(obj, edje);
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI void
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
elm_widget_can_focus_set(obj, EINA_TRUE);
#ifdef HAVE_EMOTION
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
-
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
#else
eo_error_set(obj);
#endif
{
View_Smart_Data *sd;
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
sd = calloc(1, sizeof(View_Smart_Data));
evas_object_smart_data_set(obj, sd);
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_elm_web_smart_callbacks, NULL));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Evas_Object *
sd = calloc(1, sizeof(View_Smart_Data));
evas_object_smart_data_set(obj, sd);
+ elm_widget_sub_object_add(eo_parent_get(obj), obj);
+
_ewk_view_parent_sc.sc.add(obj);
}
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME),
evas_obj_smart_callbacks_descriptions_set(_elm_web_smart_callbacks, NULL));
- elm_widget_sub_object_add(eo_parent_get(obj), obj);
}
EAPI Evas_Object *