int idx;
ELM_CTXPOPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!rect || !sd->parent) return ELM_CTXPOPUP_DIRECTION_DOWN;
double drag;
ELM_CTXPOPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
evas_object_geometry_get
Evas_Coord_Point list_size = { 0, 0 };
Elm_Ctxpopup_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->arrow) return; /* simple way to flag "under deletion" */
if (!sd->parent) return; /* do not calculate sizes unless parent is set */
/* access: parent could be any object such as elm_list which does
not know elc_ctxpopup as its child object in the focus_next(); */
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
wd->highlight_root = EINA_TRUE;
return obj;
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
char buf[1024];
Elm_Fileselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret;
char buf[4096];
const char *style;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
style = eina_stringshare_add(elm_widget_style_get(obj));
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
char buf[1024];
Elm_Fileselector_Entry_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool int_ret;
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
Eina_Bool int_ret;
Elm_Hoversel_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
char buf[4096];
const char *style;
Evas_Coord button_min_width = 0;
ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->view_state == MULTIBUTTONENTRY_VIEW_ENTRY)
evas_object_hide(sd->entry);
Evas_Coord left, right, top, bottom;
Elm_Multibuttonentry_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_size_hint_min_get(sd->box, &minw, &minh);
edje_object_part_geometry_get
Evas_Object *obj __UNUSED__,
void *event __UNUSED__)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
Evas_Coord w, h;
evas_object_geometry_get(sd->box, NULL, NULL, &w, &h);
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
Evas_Coord en_x, en_y, en_w, en_h;
evas_object_geometry_get(sd->entry, &en_x, &en_y, &en_w, &en_h);
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
const char *str;
str = elm_object_text_get(sd->entry);
void *event_info __UNUSED__)
{
Elm_Multibuttonentry_Item *item = NULL;
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
if (sd->selected_it)
{
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
const char *str;
str = elm_object_text_get(sd->entry);
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
_current_button_state_change(sd->parent, MULTIBUTTONENTRY_BUTTON_STATE_DEFAULT);
elm_object_focus_set(sd->entry, EINA_TRUE);
void *event_info)
{
Elm_Multibuttonentry_Item *item = NULL;
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
Evas_Event_Key_Up *ev = (Evas_Event_Key_Up *)event_info;
if (!sd->box) return;
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
Evas_Event_Key_Down *ev = (Evas_Event_Key_Down *)event_info;
if (sd->n_str == 1 &&
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Multibuttonentry_Smart_Data *sd = data;
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(data, sd);
Evas_Event_Key_Up *ev = (Evas_Event_Key_Up *)event_info;
const char *str;
_callbacks_register(Evas_Object *obj)
{
ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_layout_signal_callback_add
(obj, "mouse,clicked,1", "*", _mouse_clicked_signal_cb, sd);
_layout_key_up_cb, sd);
evas_object_event_callback_add
- (sd->box, EVAS_CALLBACK_RESIZE, _box_resize_cb, sd);
+ (sd->box, EVAS_CALLBACK_RESIZE, _box_resize_cb, obj);
evas_object_event_callback_add
- (sd->entry, EVAS_CALLBACK_KEY_UP, _entry_key_up_cb, sd);
+ (sd->entry, EVAS_CALLBACK_KEY_UP, _entry_key_up_cb, obj);
evas_object_event_callback_add
- (sd->entry, EVAS_CALLBACK_KEY_DOWN, _entry_key_down_cb, sd);
+ (sd->entry, EVAS_CALLBACK_KEY_DOWN, _entry_key_down_cb, obj);
evas_object_event_callback_add
- (sd->entry, EVAS_CALLBACK_RESIZE, _entry_resize_cb, sd);
+ (sd->entry, EVAS_CALLBACK_RESIZE, _entry_resize_cb, obj);
evas_object_smart_callback_add
- (sd->entry, "changed", _entry_changed_cb, sd);
+ (sd->entry, "changed", _entry_changed_cb, obj);
evas_object_smart_callback_add
- (sd->entry, "focused", _entry_focus_in_cb, sd);
+ (sd->entry, "focused", _entry_focus_in_cb, obj);
evas_object_smart_callback_add
- (sd->entry, "unfocused", _entry_focus_out_cb, sd);
+ (sd->entry, "unfocused", _entry_focus_out_cb, obj);
evas_object_smart_callback_add
- (sd->entry, "clicked", _entry_clicked_cb, sd);
+ (sd->entry, "clicked", _entry_clicked_cb, obj);
}
static void
_view_init(Evas_Object *obj, Elm_Multibuttonentry_Smart_Data *sd)
{
const char *end_type;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->box = elm_box_add(obj);
_elm_multibuttonentry_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Multibuttonentry_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_naviframe_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Naviframe_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
{
Evas_Coord w, h;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_get(wd->resize_obj, &w, &h);
edje_object_size_min_restricted_calc
_access_object_get(const Evas_Object *obj, const char* part)
{
Evas_Object *po, *ao;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
po = (Evas_Object *)edje_object_part_object_get(wd->resize_obj, part);
ao = evas_object_data_get(po, "_part_access_obj");
const char *action_area_height;
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->items) return;
Evas_Object *ao;
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (is_access)
{
if (ret) *ret = EINA_FALSE;
Elm_Popup_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
Elm_Popup_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->items)
{
Eina_Bool int_ret;
Elm_Popup_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_sub_object_del(sobj, &int_ret));
if (!int_ret) return;
char buf[128];
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->button_count) return;
_list_add(Evas_Object *obj)
{
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->tbl = elm_table_add(obj);
Eina_Bool title_visibility_old, title_visibility_current;
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->title_text == text) return EINA_TRUE;
char buf[128];
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->items)
{
Eina_Bool title_visibility_old, title_visibility_current;
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->title_icon == icon) return EINA_TRUE;
title_visibility_old = (sd->title_text) || (sd->title_icon);
Evas_Object *content)
{
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->content && sd->content == content) return EINA_TRUE;
if (sd->items)
char buf[128];
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (idx >= ELM_POPUP_ACTION_BUTTON_MAX) return;
Evas_Object *icon;
ELM_POPUP_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->title_icon) return NULL;
_elm_popup_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Popup_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
evas_object_size_hint_weight_set
/* access: parent could be any object such as elm_list which does
not know elc_popup as its child object in the focus_next(); */
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
wd->highlight_root = EINA_TRUE;
return obj;
/* find highlight root */
do
{
- wd = eo_data_get(parent, ELM_OBJ_WIDGET_CLASS);
+ wd = eo_data_scope_get(parent, ELM_OBJ_WIDGET_CLASS);
if (wd->highlight_root)
{
/* change highlight root */
/* find highlight root */
do
{
- wd = eo_data_get(parent, ELM_OBJ_WIDGET_CLASS);
+ wd = eo_data_scope_get(parent, ELM_OBJ_WIDGET_CLASS);
if (wd->highlight_root)
{
/* change highlight root */
Evas_Coord minw = -1, minh = -1;
Elm_Actionslider_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
evas_object_size_hint_min_set(sd->drag_button_base, minw, minh);
double pos;
char *left;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
left = (char *)elm_layout_text_get(obj, "elm.text.left");
if (left) left = strdup(left);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
mirrored = elm_object_mirrored_get(obj);
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Actionslider_Smart_Data *sd = data;
+ Elm_Actionslider_Smart_Data *sd = eo_data_scope_get(data, MY_CLASS);
sd->mouse_down = EINA_TRUE;
}
double pos = 0.0;
ELM_ACTIONSLIDER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->mouse_down) return;
double cur_position = 0.0, new_position = 0.0;
ELM_ACTIONSLIDER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_get
(wd->resize_obj, "elm.drag_button_base",
double position = 0.0;
ELM_ACTIONSLIDER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->mouse_down = EINA_FALSE;
_elm_actionslider_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Actionslider_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
_drag_button_up_cb, obj);
edje_object_signal_callback_add
(wd->resize_obj, "elm.drag_button,mouse,down", "",
- _drag_button_down_cb, priv);
+ _drag_button_down_cb, obj);
edje_object_signal_callback_add
(wd->resize_obj, "elm.drag_button,mouse,move", "",
_drag_button_move_cb, obj);
Elm_Actionslider_Pos pos = va_arg(*list, Elm_Actionslider_Pos);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
pos = _get_pos_by_orientation(obj, pos);
if (pos == ELM_ACTIONSLIDER_CENTER) position = 0.5;
Elm_Actionslider_Pos *ret = va_arg(*list, Elm_Actionslider_Pos *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_get
(wd->resize_obj, "elm.drag_button_base", &position,
const char *p;
Elm_Bg_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if ((!sd->img) || (!sd->file)) return;
if (((p = strrchr(sd->file, '.'))) && (!strcasecmp(p, ".edj"))) return;
const char *group = va_arg(*list, const char *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
Elm_Bg_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *p;
Eina_Bool int_ret;
int g = va_arg(*list, int);
int b = va_arg(*list, int);
Elm_Bg_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->rect)
{
list_data_get = eina_list_data_get;
else
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Object_Box_Data *bd =
evas_object_smart_data_get(wd->resize_obj);
list_data_get = eina_list_data_get;
else
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Object_Box_Data *bd =
evas_object_smart_data_get(wd->resize_obj);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_smart_calculate(wd->resize_obj);
if (ret) *ret = EINA_TRUE;
Evas_Coord w, h;
ELM_BOX_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->delete_me)
return;
static void
_elm_box_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_widget_resize_object_set(obj,
evas_object_box_add(evas_object_evas_get(obj)));
Elm_Box_Smart_Data *sd = _pd;
sd->delete_me = EINA_TRUE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_event_callback_del_full
(wd->resize_obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_on_size_hints_changed, obj);
{
Eina_Bool horizontal = va_arg(*list, int);
Elm_Box_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->horizontal = !!horizontal;
evas_object_smart_calculate(wd->resize_obj);
{
Eina_Bool homogeneous = va_arg(*list, int);
Elm_Box_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->homogeneous = !!homogeneous;
evas_object_smart_calculate(wd->resize_obj);
{
Evas_Object *subobj = va_arg(*list, Evas_Object *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_prepend(wd->resize_obj, subobj);
_pack_end(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *subobj = va_arg(*list, Evas_Object *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_append(wd->resize_obj, subobj);
{
Evas_Object *subobj = va_arg(*list, Evas_Object *);
Evas_Object *before = va_arg(*list, Evas_Object *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_widget_sub_object_add(obj, subobj);
{
Evas_Object *subobj = va_arg(*list, Evas_Object *);
Evas_Object *after = va_arg(*list, Evas_Object *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_insert_after
_clear(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
/* EINA_TRUE means to delete objects as well */
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_box_remove_all(wd->resize_obj, EINA_TRUE);
}
_unpack(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *subobj = va_arg(*list, Evas_Object *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (evas_object_box_remove(wd->resize_obj, subobj))
elm_widget_sub_object_del(obj, subobj);
Evas_Object_Box_Data *bd;
Evas_Object_Box_Option *opt;
Eina_List *l;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ELM_BOX_CHECK(obj);
bd = evas_object_smart_data_get(wd->resize_obj);
Evas_Object_Box_Layout cb = va_arg(*list, Evas_Object_Box_Layout);
const void *data = va_arg(*list, const void *);
Ecore_Cb free_data = va_arg(*list, Ecore_Cb);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (cb)
evas_object_box_layout_set
(wd->resize_obj, cb, data, free_data);
_children_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_List **ret = va_arg(*list, Eina_List **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = evas_object_box_children_get(wd->resize_obj);
}
{
Evas_Coord horizontal = va_arg(*list, Evas_Coord);
Evas_Coord vertical = va_arg(*list, Evas_Coord);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_box_padding_set
(wd->resize_obj, horizontal, vertical);
{
Evas_Coord *horizontal = va_arg(*list, Evas_Coord *);
Evas_Coord *vertical = va_arg(*list, Evas_Coord *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_box_padding_get
(wd->resize_obj, horizontal, vertical);
}
{
double horizontal = va_arg(*list, double);
double vertical = va_arg(*list, double);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_size_hint_align_set
(wd->resize_obj, horizontal, vertical);
{
double *horizontal = va_arg(*list, double *);
double *vertical = va_arg(*list, double *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_size_hint_align_get
(wd->resize_obj, horizontal, vertical);
if (sd->recalc) return;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_smart_need_recalculate_set
(wd->resize_obj, EINA_TRUE);
sd->recalc++;
{
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
{
Evas_Object *content;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Elm_Focus_Direction dir = va_arg(*list, Elm_Focus_Direction);
Evas_Object **next = va_arg(*list, Evas_Object **);
_elm_bubble_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Bubble_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_Bubble_Pos pos = va_arg(*list, Elm_Bubble_Pos);
Elm_Bubble_Smart_Data *sd = _pd;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
if (pos < ELM_BUBBLE_POS_TOP_LEFT || pos > ELM_BUBBLE_POS_BOTTOM_RIGHT)
return;
static void
_elm_button_smart_sizing_eval(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1;
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
}
static void
-_elm_button_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+_elm_button_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Button_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_access_callback_set
(_elm_access_object_get(obj), ELM_ACCESS_INFO, _access_info_cb, NULL);
_elm_access_callback_set
- (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, priv);
+ (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, obj);
elm_widget_can_focus_set(obj, EINA_TRUE);
if (!elm_layout_theme_set(obj, "button", "base", elm_widget_style_get(obj)))
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(8, &minw, ELM_DAY_LAST, &minh);
edje_object_size_min_restricted_calc
int i, t;
Elm_Calendar_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
{
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
Eina_Bool int_ret = EINA_FALSE;
Elm_Check_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
static char *
_access_state_cb(void *data, Evas_Object *obj)
{
- Elm_Check_Smart_Data *sd = eo_data_get(data, MY_CLASS);
+ Elm_Check_Smart_Data *sd = eo_data_scope_get(data, MY_CLASS);
const char *on_text, *off_text;
if (elm_widget_disabled_get(obj))
}
static void
-_elm_check_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+_elm_check_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Check_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_access_text_set
(_elm_access_object_get(obj), ELM_ACCESS_TYPE, E_("Check"));
_elm_access_callback_set
- (_elm_access_object_get(obj), ELM_ACCESS_INFO, _access_info_cb, priv);
+ (_elm_access_object_get(obj), ELM_ACCESS_INFO, _access_info_cb, obj);
_elm_access_callback_set
(_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, obj);
{
Eina_Bool state = va_arg(*list, int);
Elm_Check_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (state != sd->state)
{
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Clock_Smart_Data *sd = data;
+ ELM_CLOCK_DATA_GET(data, sd);
if (sd->spin) ecore_timer_del(sd->spin);
sd->spin = NULL;
_time_update(Evas_Object *obj)
{
ELM_CLOCK_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Edje_Message_Int msg;
int ampm = 0;
_on_clock_val_up_start, obj);
edje_object_signal_callback_add
(sd->digit[i], "elm,action,up,stop", "",
- _on_clock_val_change_stop, sd);
+ _on_clock_val_change_stop, obj);
edje_object_signal_callback_add
(sd->digit[i], "elm,action,down,start", "",
_on_clock_val_down_start, obj);
edje_object_signal_callback_add
(sd->digit[i], "elm,action,down,stop", "",
- _on_clock_val_change_stop, sd);
+ _on_clock_val_change_stop, obj);
mw = mh = -1;
elm_coords_finger_size_adjust(1, &mw, 2, &mh);
_on_clock_val_up_start, obj);
edje_object_signal_callback_add
(sd->am_pm_obj, "elm,action,up,stop", "",
- _on_clock_val_change_stop, sd);
+ _on_clock_val_change_stop, obj);
edje_object_signal_callback_add
(sd->am_pm_obj, "elm,action,down,start", "",
_on_clock_val_down_start, obj);
edje_object_signal_callback_add
(sd->am_pm_obj, "elm,action,down,stop", "",
- _on_clock_val_change_stop, sd);
+ _on_clock_val_change_stop, obj);
mw = mh = -1;
elm_coords_finger_size_adjust(1, &mw, 2, &mh);
_elm_clock_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Clock_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
static void
_access_obj_process(Evas_Object *obj, Eina_Bool is_access)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
/* clock object */
evas_object_propagate_events_set(obj, !is_access);
unsigned int v_pad = DEFAULT_VER_PAD;
Elm_Colorselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
Evas_Coord minw = -1, minh = -1;
Elm_Colorselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
unsigned int v_pad = DEFAULT_VER_PAD;
Elm_Colorselector_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_Colorselector_Mode mode = va_arg(*list, Elm_Colorselector_Mode);
Elm_Colorselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->mode == mode) return;
sd->mode = mode;
ELM_CONFORMANT_DATA_GET(obj, sd);
- wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
e = evas_object_evas_get(obj);
sd->scroller = NULL;
_port_indicator_connect_cb(void *data)
{
const char *indicator_serv_name;
- Elm_Conformant_Smart_Data *sd = data;
+ ELM_CONFORMANT_DATA_GET(data, sd);
int rot;
if (!sd) return ECORE_CALLBACK_CANCEL;
_land_indicator_connect_cb(void *data)
{
const char *indicator_serv_name;
- Elm_Conformant_Smart_Data *sd = data;
+ ELM_CONFORMANT_DATA_GET(data, sd);
int rot;
if (!sd) return ECORE_CALLBACK_CANCEL;
ELM_CONFORMANT_DATA_GET(conform, sd);
- sd->land_indi_timer = ecore_timer_add(1, _land_indicator_connect_cb, sd);
+ sd->land_indi_timer = ecore_timer_add(1, _land_indicator_connect_cb, conform);
}
static void
ELM_CONFORMANT_DATA_GET(conform, sd);
- sd->port_indi_timer = ecore_timer_add(1, _port_indicator_connect_cb, sd);
+ sd->port_indi_timer = ecore_timer_add(1, _port_indicator_connect_cb, conform);
}
Elm_Widget_Smart_Data *wd;
ELM_CONFORMANT_DATA_GET(conformant, sd);
- wd = eo_data_get(conformant, ELM_OBJ_WIDGET_CLASS);
+ wd = eo_data_scope_get(conformant, ELM_OBJ_WIDGET_CLASS);
sd->indmode = indmode;
char *dt_fmt;
ELM_DATETIME_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
// FIXME: provide nl_langinfo on Windows if possible
// fetch the default format from Libc.
unsigned int idx, field_count = 0;
Elm_Datetime_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
{
unsigned int idx;
Elm_Datetime_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
{
Evas_Coord min_w = -1, min_h = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(ELM_DAYSELECTOR_MAX, &min_w, 1, &min_h);
edje_object_size_min_restricted_calc
_week_start_set(Eo *obj, void *_pd, va_list *list)
{
Elm_Dayselector_Day day = va_arg(*list, Elm_Dayselector_Day);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_List *l;
char buf[1024];
Elm_Dayselector_Item *it;
Evas_Coord w, h;
ELM_DISKSELECTOR_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if ((sd->minw == -1) && (sd->minh == -1))
elm_coords_finger_size_adjust(6, &sd->minw, 1, &sd->minh);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_on_focus(&int_ret));
if (!int_ret) return;
if (ret) *ret = EINA_FALSE;
Elm_Entry_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool int_ret = EINA_FALSE;
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
Evas_Object *ro;
Elm_Entry_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ro = wd->resize_obj;
Evas_Object *ro;
Elm_Entry_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ro = wd->resize_obj;
#endif
Elm_Entry_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
static int
_state_update(Evas_Object *obj)
{
- Elm_Flip_Smart_Data *sd = eo_data_get(obj, MY_CLASS);
+ Elm_Flip_Smart_Data *sd = eo_data_scope_get(obj, MY_CLASS);
Slice *sl;
Vertex3 *tvo, *tvol;
Evas_Object *front, *back;
{
Elm_Flip_Mode m = ELM_FLIP_ROTATE_X_CENTER_AXIS;
Evas_Object *obj = data;
- Elm_Flip_Smart_Data *sd = eo_data_get(obj, MY_CLASS);
+ Elm_Flip_Smart_Data *sd = eo_data_scope_get(obj, MY_CLASS);
int rev = 0;
double p;
Evas_Coord minw = -1, minh = -1, w, h;
Elm_Flipselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->evaluating) return;
Elm_Flipselector_Item *item;
ELM_FLIPSELECTOR_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
label = NULL;
item = DATA_GET(sd->current);
char *label)
{
Edje_Message_String msg;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
msg.str = label;
edje_object_message_send
if (ret) *ret = EINA_FALSE;
Elm_Flipselector_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
_sizing_eval(Evas_Object *obj,
Elm_Frame_Smart_Data *sd EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1;
Evas_Coord cminw = -1, cminh = -1;
const char *src __UNUSED__)
{
ELM_FRAME_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
evas_object_smart_callback_del
(wd->resize_obj, "recalc", _recalc);
const char *src __UNUSED__)
{
ELM_FRAME_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
if (sd->anim) return;
_elm_frame_smart_calculate(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Frame_Smart_Data *sd = _pd;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, elm_obj_layout_class_get());
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, elm_obj_layout_class_get());
if (ld->needs_size_calc)
{
static void
_elm_frame_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
{
Eina_Bool collapse = va_arg(*list, int);
Elm_Frame_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
collapse = !!collapse;
if (sd->collapsed == collapse) return;
{
Eina_Bool collapse = va_arg(*list, int);
Elm_Frame_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
collapse = !!collapse;
if (sd->collapsed == collapse) return;
static void
_calc_job(void *data)
{
- Elm_Gengrid_Smart_Data *sd = data;
+ ELM_GENGRID_DATA_GET(data, sd);
Evas_Coord minw = 0, minh = 0, nmax = 0, cvw, cvh;
Elm_Gen_Item *it, *group_item = NULL;
int count_group = 0;
}
static void
+_elm_gengrid_pan_destructor(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+{
+ Elm_Gengrid_Pan_Smart_Data *psd = _pd;
+ eo_data_unref(psd->wobj, psd->wsd);
+ eo_do_super(obj, MY_PAN_CLASS, eo_destructor());
+}
+
+static void
_elm_gengrid_pan_smart_move(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
{
Elm_Gengrid_Pan_Smart_Data *psd = _pd;
va_arg(*list, Evas_Coord);
if (psd->wsd->calc_job) ecore_job_del(psd->wsd->calc_job);
- psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wsd);
+ psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wobj);
}
static void
evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
if ((ow == w) && (oh == h)) return;
if (psd->wsd->calc_job) ecore_job_del(psd->wsd->calc_job);
- psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wsd);
+ psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wobj);
}
static void
if (GG_IT(it)->wsd->calc_job)
ecore_job_del(GG_IT(it)->wsd->calc_job);
GG_IT(it)->wsd->calc_job =
- ecore_job_add(_calc_job, GG_IT(it)->wsd);
+ ecore_job_add(_calc_job, GG_IT(it)->wsd->obj);
}
return;
}
if (sd->calc_job)
ecore_job_del(sd->calc_job);
sd->calc_job =
- ecore_job_add(_calc_job, sd);
+ ecore_job_add(_calc_job, sd->obj);
eo_do(WIDGET(it), elm_scrollable_interface_hold_set(EINA_FALSE));
eo_do(WIDGET(it), elm_scrollable_interface_bounce_allow_set(
if (wsd->calc_job)
ecore_job_del(wsd->calc_job);
wsd->calc_job =
- ecore_job_add(_calc_job, wsd);
+ ecore_job_add(_calc_job, wsd->obj);
return;
}
_gengrid_pan_class_constructor(Eo_Class *klass)
{
const Eo_Op_Func_Description func_desc[] = {
+ EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _elm_gengrid_pan_destructor),
+
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_gengrid_pan_smart_resize),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_MOVE), _elm_gengrid_pan_smart_move),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_CALCULATE), _elm_gengrid_pan_smart_calculate),
}
if (GG_IT(it)->wsd->calc_job) ecore_job_del(GG_IT(it)->wsd->calc_job);
GG_IT(it)->wsd->calc_job =
- ecore_job_add(GG_IT(it)->wsd->calc_cb, GG_IT(it)->wsd);
+ ecore_job_add(GG_IT(it)->wsd->calc_cb, GG_IT(it)->wsd->obj);
if (GG_IT(it)->wsd->last_selected_item == (Elm_Object_Item *)it)
GG_IT(it)->wsd->last_selected_item = NULL;
Elm_Gengrid_Pan_Smart_Data *pan_data;
Elm_Gengrid_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
priv->highlight = EINA_TRUE;
priv->pan_obj = eo_add(MY_PAN_CLASS, evas_object_evas_get(obj));
- pan_data = eo_data_get(priv->pan_obj, MY_PAN_CLASS);
+ pan_data = eo_data_scope_get(priv->pan_obj, MY_PAN_CLASS);
+ eo_data_ref(obj, NULL);
pan_data->wobj = obj;
pan_data->wsd = priv;
}
static void
-_item_size_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_size_set(Eo *obj, void *_pd, va_list *list)
{
Evas_Coord w = va_arg(*list, Evas_Coord);
Evas_Coord h = va_arg(*list, Evas_Coord);
sd->item_width = w;
sd->item_height = h;
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
}
EAPI void
}
static void
-_group_item_size_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_group_item_size_set(Eo *obj, void *_pd, va_list *list)
{
Evas_Coord w = va_arg(*list, Evas_Coord);
Evas_Coord h = va_arg(*list, Evas_Coord);
sd->group_item_width = w;
sd->group_item_height = h;
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
}
EAPI void
}
static void
-_item_append(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_append(Eo *obj, void *_pd, va_list *list)
{
Elm_Gen_Item *it;
sd->group_items = eina_list_prepend(sd->group_items, it);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
*ret = (Elm_Object_Item *)it;
}
}
static void
-_item_prepend(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_prepend(Eo *obj, void *_pd, va_list *list)
{
Elm_Gen_Item *it;
sd->group_items = eina_list_append(sd->group_items, it);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
*ret = (Elm_Object_Item *)it;
}
}
static void
-_item_insert_before(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_insert_before(Eo *obj, void *_pd, va_list *list)
{
Elm_Gen_Item *it;
Eina_Inlist *tmp;
(sd->group_items, it, ((Elm_Gen_Item *)relative)->parent);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
*ret = (Elm_Object_Item *)it;
}
}
static void
-_item_insert_after(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_insert_after(Eo *obj, void *_pd, va_list *list)
{
Elm_Gen_Item *it;
Eina_Inlist *tmp;
(sd->group_items, it, ((Elm_Gen_Item *)relative)->parent);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
*ret = (Elm_Object_Item *)it;
}
}
static void
-_item_sorted_insert(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_item_sorted_insert(Eo *obj, void *_pd, va_list *list)
{
Elm_Gen_Item *it;
_item_position_update(sd->items, 0);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
*ret = (Elm_Object_Item *)it;
}
}
static void
-_horizontal_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_horizontal_set(Eo *obj, void *_pd, va_list *list)
{
Eina_Bool horizontal = va_arg(*list, int);
Elm_Gengrid_Smart_Data *sd = _pd;
/* Update the items to conform to the new layout */
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
}
EAPI Eina_Bool
static void
_elm_genlist_pan_smart_resize_job(void *data)
{
- Elm_Genlist_Pan_Smart_Data *psd = data;
+ ELM_GENLIST_PAN_DATA_GET(data, psd);
elm_layout_sizing_eval(psd->wobj);
psd->resize_job = NULL;
/* fix me later */
if (psd->resize_job) ecore_job_del(psd->resize_job);
psd->resize_job =
- ecore_job_add(_elm_genlist_pan_smart_resize_job, psd);
+ ecore_job_add(_elm_genlist_pan_smart_resize_job, obj);
}
psd->wsd->pan_changed = EINA_TRUE;
evas_object_smart_changed(obj);
// away or appesared to queue a job to deal with it. it should settle in
// the end to a steady-state
if (ow != w)
- psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wsd);
+ psd->wsd->calc_job = ecore_job_add(_calc_job, psd->wobj);
else
psd->wsd->calc_job = NULL;
}
static Eina_Bool
_must_recalc_idler(void *data)
{
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, data);
sd->must_recalc_idler = NULL;
return ECORE_CALLBACK_CANCEL;
}
int in = 0;
Item_Block *itb, *chb = NULL;
Evas_Coord pan_w = 0, pan_h = 0;
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
Eina_Bool minw_change = EINA_FALSE;
Eina_Bool did_must_recalc = EINA_FALSE;
Evas_Coord minw = -1, minh = 0, y = 0, ow, dy = 0, vw = 0;
if (did_must_recalc)
{
if (!sd->must_recalc_idler)
- sd->must_recalc_idler = ecore_idler_add(_must_recalc_idler, sd);
+ sd->must_recalc_idler = ecore_idler_add(_must_recalc_idler, data);
}
if (sd->check_scroll)
{
Evas_Coord vmw = 0, vmh = 0;
Elm_Genlist_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->on_sub_del) return;;
itb->must_recalc = EINA_TRUE;
}
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
}
minw = vmw;
minh = vmh;
const Eina_List *l;
int y = 0, dy = 0, dh = 0;
double effect_duration = 0.3, t;
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
Eina_Bool end = EINA_FALSE, vis = EINA_TRUE;
Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh;
Elm_Gen_Item *it = NULL, *it2, *expanded_next_it;
if (psd->wsd->pan_changed)
{
- _calc_job(psd->wsd);
+ _calc_job(psd->wsd->obj);
psd->wsd->pan_changed = EINA_FALSE;
}
evas_object_show(psd->wsd->alpha_bg);
psd->wsd->start_time = ecore_time_get();
psd->wsd->tree_effect_animator =
- ecore_animator_add(_tree_effect_animator_cb, psd->wsd);
+ ecore_animator_add(_tree_effect_animator_cb, psd->wsd->obj);
}
}
}
static void
+_elm_genlist_pan_destructor(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+{
+ Elm_Genlist_Pan_Smart_Data *psd = _pd;
+ eo_data_unref(psd->wobj, psd->wsd);
+ eo_do_super(obj, MY_PAN_CLASS, eo_destructor());
+}
+
+static void
_genlist_pan_class_constructor(Eo_Class *klass)
{
const Eo_Op_Func_Description func_desc[] = {
+ EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _elm_genlist_pan_destructor),
+
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_genlist_pan_smart_del),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_genlist_pan_smart_resize),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_MOVE), _elm_genlist_pan_smart_move),
}
static void
-_elm_genlist_smart_theme(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
+_elm_genlist_smart_theme(Eo *obj, void *_pd, va_list *list)
{
Item_Block *itb;
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
- evas_event_freeze(evas_object_evas_get(sd->obj));
+ evas_event_freeze(evas_object_evas_get(obj));
_item_cache_zero(sd);
_mirrored_set(obj, elm_widget_mirrored_get(obj));
itb->changed = EINA_TRUE;
}
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, obj);
elm_layout_sizing_eval(obj);
- evas_event_thaw(evas_object_evas_get(sd->obj));
- evas_event_thaw_eval(evas_object_evas_get(sd->obj));
+ evas_event_thaw(evas_object_evas_get(obj));
+ evas_event_thaw_eval(evas_object_evas_get(obj));
if (ret) *ret = EINA_TRUE;
}
itb->count--;
itb->changed = EINA_TRUE;
if (GL_IT(it)->wsd->calc_job) ecore_job_del(GL_IT(it)->wsd->calc_job);
- GL_IT(it)->wsd->calc_job = ecore_job_add(_calc_job, GL_IT(it)->wsd);
+ GL_IT(it)->wsd->calc_job = ecore_job_add(_calc_job, GL_IT(it)->wsd->obj);
if (itb->count < 1)
{
Item_Block *itbn;
}
if (GL_IT(it)->wsd->calc_job) ecore_job_del(GL_IT(it)->wsd->calc_job);
GL_IT(it)->wsd->calc_job =
- ecore_job_add(_calc_job, GL_IT(it)->wsd);
+ ecore_job_add(_calc_job, GL_IT(it)->wsd->obj);
if (GL_IT(it)->wsd->last_selected_item == (Elm_Object_Item *)it)
GL_IT(it)->wsd->last_selected_item = NULL;
_item_position(it, VIEW(it), it->item->scrl_x, y_pos);
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, sd->obj);
}
return;
}
static Eina_Bool
_multi_cancel(void *data)
{
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
if (!sd) return ECORE_CALLBACK_CANCEL;
sd->multi_timeout = EINA_TRUE;
sd->prev_y = ev->canvas.y;
sd->multi_timeout = EINA_FALSE;
if (sd->multi_timer) ecore_timer_del(sd->multi_timer);
- sd->multi_timer = ecore_timer_add(MULTI_DOWN_TIME, _multi_cancel, sd);
+ sd->multi_timer = ecore_timer_add(MULTI_DOWN_TIME, _multi_cancel, sd->obj);
}
sd->longpressed = EINA_FALSE;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) sd->on_hold = EINA_TRUE;
itb->changed = EINA_TRUE;
it->item->block = itb;
if (itb->sd->calc_job) ecore_job_del(itb->sd->calc_job);
- itb->sd->calc_job = ecore_job_add(_calc_job, itb->sd);
+ itb->sd->calc_job = ecore_job_add(_calc_job, itb->sd->obj);
if (itb->count > itb->sd->max_items_per_block)
{
{
if (sd->calc_job) ecore_job_del(sd->calc_job);
sd->calc_job = NULL;
- _calc_job(sd);
+ _calc_job(sd->obj);
sd->pan_changed = EINA_FALSE;
}
}
_item_idle_enterer(void *data)
{
Eina_Bool wakeup = EINA_FALSE;
- Elm_Genlist_Smart_Data *sd = data;
- Eina_Bool ok = _idle_process(data, &wakeup);
+ ELM_GENLIST_DATA_GET(data, sd);
+ Eina_Bool ok = _idle_process(sd, &wakeup);
if (wakeup)
{
// wake up mainloop
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, data);
}
if (ok == ECORE_CALLBACK_CANCEL) sd->queue_idle_enterer = NULL;
// evas_event_thaw(evas_object_evas_get(sd->obj));
// evas_event_thaw_eval(evas_object_evas_get(sd->obj));
if (!sd->queue_idle_enterer)
- sd->queue_idle_enterer = ecore_idle_enterer_add(_item_idle_enterer, sd);
+ sd->queue_idle_enterer = ecore_idle_enterer_add(_item_idle_enterer, sd->obj);
}
/* If the application wants to know the relative item, use
else
{
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, sd->obj);
}
edje_object_signal_emit(VIEW(it), "elm,state,reorder,disabled", "elm");
sd->reorder_it = sd->reorder_rel = NULL;
static Eina_Bool
_scroll_hold_timer_cb(void *data)
{
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
if (!data) return ECORE_CALLBACK_CANCEL;
_update_job(void *data)
{
Eina_Bool position = EINA_FALSE, recalc = EINA_FALSE;
- Elm_Genlist_Smart_Data *sd = data;
+ ELM_GENLIST_DATA_GET(data, sd);
Item_Block *itb;
Eina_List *l2;
int num, num0;
if (position)
{
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, sd->obj);
}
evas_event_thaw(evas_object_evas_get(sd->obj));
evas_event_thaw_eval(evas_object_evas_get(sd->obj));
sd->scr_hold_timer = NULL;
}
eo_do(sd->obj, elm_scrollable_interface_hold_set(EINA_TRUE));
- sd->scr_hold_timer = ecore_timer_add(SCR_HOLD_TIME, _scroll_hold_timer_cb, sd);
+ sd->scr_hold_timer = ecore_timer_add(SCR_HOLD_TIME, _scroll_hold_timer_cb, sd->obj);
evas_event_freeze(evas_object_evas_get(sd->obj));
_decorate_item_realize(it);
Elm_Genlist_Pan_Smart_Data *pan_data;
Elm_Genlist_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
priv->highlight = EINA_TRUE;
priv->pan_obj = eo_add(MY_PAN_CLASS, evas_object_evas_get(obj));
- pan_data = eo_data_get(priv->pan_obj, MY_PAN_CLASS);
+ pan_data = eo_data_scope_get(priv->pan_obj, MY_PAN_CLASS);
+ eo_data_ref(obj, NULL);
pan_data->wobj = obj;
pan_data->wsd = priv;
if (GL_IT(it)->wsd->calc_job)
ecore_job_del(GL_IT(it)->wsd->calc_job);
GL_IT(it)->wsd->calc_job =
- ecore_job_add(_calc_job, GL_IT(it)->wsd);
+ ecore_job_add(_calc_job, GL_IT(it)->wsd->obj);
}
if (it->parent)
{
evas_object_show(sd->alpha_bg);
sd->start_time = ecore_time_get();
sd->tree_effect_animator =
- ecore_animator_add(_tree_effect_animator_cb, sd);
+ ecore_animator_add(_tree_effect_animator_cb, sd->obj);
}
else
_item_sub_items_clear(it);
it->item->updateme = EINA_TRUE;
it->item->block->updateme = EINA_TRUE;
if (GL_IT(it)->wsd->update_job) ecore_job_del(GL_IT(it)->wsd->update_job);
- GL_IT(it)->wsd->update_job = ecore_job_add(_update_job, GL_IT(it)->wsd);
+ GL_IT(it)->wsd->update_job = ecore_job_add(_update_job, GL_IT(it)->wsd->obj);
}
EAPI void
}
if (sd->calc_job) ecore_job_del(sd->calc_job);
- sd->calc_job = ecore_job_add(_calc_job, sd);
+ sd->calc_job = ecore_job_add(_calc_job, sd->obj);
}
EAPI void
it->flipped = EINA_TRUE;
it->item->nocache = EINA_TRUE;
if (GL_IT(it)->wsd->calc_job) ecore_job_del(GL_IT(it)->wsd->calc_job);
- GL_IT(it)->wsd->calc_job = ecore_job_add(_calc_job, GL_IT(it)->wsd);
+ GL_IT(it)->wsd->calc_job = ecore_job_add(_calc_job, GL_IT(it)->wsd->obj);
}
EAPI void
if (GL_IT(it)->wsd->update_job)
ecore_job_del(GL_IT(it)->wsd->update_job);
GL_IT(it)->wsd->update_job =
- ecore_job_add(_update_job, GL_IT(it)->wsd);
+ ecore_job_add(_update_job, GL_IT(it)->wsd->obj);
// reset homogeneous item size
if (GL_IT(it)->wsd->homogeneous)
((sd->gesture[T]) ? sd->gesture[T]->test : EINA_FALSE)
#define ELM_GESTURE_LAYER_DATA_GET(o, sd) \
- Elm_Gesture_Layer_Smart_Data * sd = eo_data_get(o, MY_CLASS)
+ Elm_Gesture_Layer_Smart_Data * sd = eo_data_scope_get(o, MY_CLASS)
#define ELM_GESTURE_LAYER_DATA_GET_OR_RETURN(o, ptr) \
ELM_GESTURE_LAYER_DATA_GET(o, ptr); \
_elm_glview_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (elm_widget_focus_get(obj))
{
_glview_update_surface(Evas_Object *obj)
{
ELM_GLVIEW_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd) return;
if (sd->surface)
_set_render_policy_callback(Evas_Object *obj)
{
ELM_GLVIEW_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
switch (sd->render_policy)
{
Elm_GLView_Mode mode = va_arg(*list, Elm_GLView_Mode);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
Elm_Glview_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
// Set the configs
if (mode & ELM_GLVIEW_ALPHA) sd->config->color_format = EVAS_GL_RGBA_8888;
_changed_set(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Glview_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_image_pixels_dirty_set
(wd->resize_obj, EINA_TRUE);
static void
_elm_grid_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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);
_children_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_List **ret = va_arg(*list, Eina_List **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = evas_object_grid_children_get(wd->resize_obj);
return;
}
if (elm_widget_mirrored_get(obj)) ofs_x = w - (x2 - x) - w2;
else ofs_x = x2 - x;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_move(wd->resize_obj, x, y);
evas_object_resize(wd->resize_obj, w, h);
evas_object_size_hint_min_set(sd->offset, ofs_x, y2 - y);
int type __UNUSED__,
void *ev __UNUSED__)
{
- Elm_Icon_Smart_Data *sd = data;
+ ELM_ICON_DATA_GET(data, sd);
_icon_thumb_apply(sd);
Evas_Object *pclip;
Elm_Icon_Smart_Data *sd = _pd;
- Elm_Image_Smart_Data *id = eo_data_get(obj, ELM_OBJ_IMAGE_CLASS);
+ Elm_Image_Smart_Data *id = eo_data_scope_get(obj, ELM_OBJ_IMAGE_CLASS);
const char *file = va_arg(*list, const char *);
const char *key = va_arg(*list, const char *);
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Icon_Smart_Data *sd = data;
+ ELM_ICON_DATA_GET(data, sd);
const char *refup = eina_stringshare_ref(sd->stdicon);
Eina_Bool fdo = EINA_FALSE;
if (!_elm_icon_standard_set(obj, sd->stdicon, &fdo) || (!fdo))
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, data);
eina_stringshare_del(refup);
}
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Icon_Smart_Data *sd = data;
+ ELM_ICON_DATA_GET(data, sd);
if (sd->thumb.file.path)
elm_icon_thumb_set(obj, sd->thumb.file.path, sd->thumb.file.key);
const char *source)
{
- Elm_Image_Smart_Data *id = eo_data_get(obj, ELM_OBJ_IMAGE_CLASS);
+ Elm_Image_Smart_Data *id = eo_data_scope_get(obj, ELM_OBJ_IMAGE_CLASS);
if (!id->edje) return;
Edje_Signal_Data *esd;
ELM_ICON_DATA_GET(obj, sd);
- Elm_Image_Smart_Data *id = eo_data_get(obj, ELM_OBJ_IMAGE_CLASS);
+ Elm_Image_Smart_Data *id = eo_data_scope_get(obj, ELM_OBJ_IMAGE_CLASS);
if (!id->edje) return;
Eina_List *l;
ELM_ICON_DATA_GET(obj, sd);
- Elm_Image_Smart_Data *id = eo_data_get(obj, ELM_OBJ_IMAGE_CLASS);
+ Elm_Image_Smart_Data *id = eo_data_scope_get(obj, ELM_OBJ_IMAGE_CLASS);
if (!id->edje) return NULL;
Elm_Icon_Smart_Data *sd = _pd;
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, obj);
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_thumb_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_thumb_resize_cb, obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_thumb_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_thumb_resize_cb, obj);
eina_stringshare_replace(&sd->thumb.file.path, file);
eina_stringshare_replace(&sd->thumb.file.key, group);
if (!sd->thumb.eeh)
{
sd->thumb.eeh = ecore_event_handler_add
- (ELM_ECORE_EVENT_ETHUMB_CONNECT, _icon_thumb_apply_cb, sd);
+ (ELM_ECORE_EVENT_ETHUMB_CONNECT, _icon_thumb_apply_cb, obj);
}
#else
(void)obj;
}
static void
-_standard_set(Eo *obj, void *_pd, va_list *list)
+_standard_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
-
- Elm_Icon_Smart_Data *sd = _pd;
-
Eina_Bool fdo = EINA_FALSE;
const char *name = va_arg(*list, const char *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
}
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, obj);
Eina_Bool int_ret = _elm_icon_standard_set(obj, name, &fdo);
if (fdo)
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_icon_standard_resize_cb, obj);
if (ret) *ret = int_ret;
}
static Eina_Bool
_elm_image_animate_cb(void *data)
{
- Elm_Image_Smart_Data *sd = data;
+ ELM_IMAGE_DATA_GET(data, sd);
if (!sd->anim) return ECORE_CALLBACK_CANCEL;
}
static void
-_elm_image_smart_animated_play_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_elm_image_smart_animated_play_set(Eo *obj, void *_pd, va_list *list)
{
Eina_Bool play = va_arg(*list, int);
Elm_Image_Smart_Data *sd = _pd;
if (play)
{
sd->anim_timer = ecore_timer_add
- (sd->frame_duration, _elm_image_animate_cb, sd);
+ (sd->frame_duration, _elm_image_animate_cb, obj);
}
else
{
if (sd->level_active[level]) return;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_geometry_get(wd->resize_obj, NULL, NULL, NULL, &ih);
rtl = elm_widget_mirrored_get(obj);
Eina_Bool int_ret = EINA_FALSE;
Elm_Index_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
_index_box_clear(obj, sd->bx[0], 0);
_index_box_clear(obj, sd->bx[1], 1);
{
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
int i, j, size, dh, dx, dy;
ELM_INDEX_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
for (i = 0; i <= sd->level; i++)
{
Evas_Coord x, y, w;
ELM_INDEX_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
if (ev->button != 1) return;
sd->down = 1;
char buf[1024];
ELM_INDEX_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
if (!sd->down) return;
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
Evas_Coord minw, minh;
Elm_Index_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
#define MY_PAN_CLASS_NAME "elm_pan"
#define ELM_PAN_DATA_GET_OR_RETURN(o, ptr) \
- Elm_Pan_Smart_Data *ptr = eo_data_get(o, MY_PAN_CLASS); \
+ Elm_Pan_Smart_Data *ptr = eo_data_scope_get(o, MY_PAN_CLASS); \
if (!ptr) \
{ \
CRITICAL("No smart data for object %p (%s)", \
}
#define ELM_PAN_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
- Elm_Pan_Smart_Data *ptr = eo_data_get(o, MY_PAN_CLASS); \
+ Elm_Pan_Smart_Data *ptr = eo_data_scope_get(o, MY_PAN_CLASS); \
if (!ptr) \
{ \
CRITICAL("No smart data for object %p (%s)", \
#define ELM_SCROLL_IFACE_DATA_GET_OR_RETURN(o, ptr) \
Elm_Scrollable_Smart_Interface_Data *ptr = \
(!eo_isa(o, MY_SCROLLABLE_INTERFACE) ? NULL : \
- eo_data_get(o, MY_SCROLLABLE_INTERFACE)); \
+ eo_data_scope_get(o, MY_SCROLLABLE_INTERFACE)); \
if (!ptr) \
{ \
CRITICAL("No interface data for object %p (%s)", \
#define ELM_SCROLL_IFACE_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
Elm_Scrollable_Smart_Interface_Data *ptr = \
(!eo_isa(o, MY_SCROLLABLE_INTERFACE) ? NULL : \
- eo_data_get(o, MY_SCROLLABLE_INTERFACE)); \
+ eo_data_scope_get(o, MY_SCROLLABLE_INTERFACE)); \
if (!ptr) \
{ \
CRITICAL("No interface data for object %p (%s)", \
static Eina_Bool
_elm_scroll_bounce_x_animator(void *data)
{
- Elm_Scrollable_Smart_Interface_Data *sid;
+ ELM_SCROLL_IFACE_DATA_GET_OR_RETURN_VAL(data, sid, EINA_FALSE);
Evas_Coord x, y, dx, w, odx, ed, md;
double t, p, dt, pd, r;
- sid = data;
t = ecore_loop_time_get();
dt = t - sid->down.anim_start2;
if (dt >= 0.0)
static Eina_Bool
_elm_scroll_bounce_y_animator(void *data)
{
- Elm_Scrollable_Smart_Interface_Data *sid;
+ ELM_SCROLL_IFACE_DATA_GET_OR_RETURN_VAL(data, sid, EINA_FALSE);
Evas_Coord x, y, dy, h, ody, ed, md;
double t, p, dt, pd, r;
- sid = data;
t = ecore_loop_time_get();
dt = t - sid->down.anim_start3;
if (dt >= 0.0)
sid->scrollto.x.animator = NULL;
}
sid->down.bounce_x_animator =
- ecore_animator_add(_elm_scroll_bounce_x_animator, sid);
+ ecore_animator_add(_elm_scroll_bounce_x_animator, sid->obj);
sid->down.anim_start2 = ecore_loop_time_get();
sid->down.bx = bx;
sid->down.bx0 = bx;
sid->scrollto.y.animator = NULL;
}
sid->down.bounce_y_animator =
- ecore_animator_add(_elm_scroll_bounce_y_animator, sid);
+ ecore_animator_add(_elm_scroll_bounce_y_animator, sid->obj);
sid->down.anim_start3 = ecore_loop_time_get();
sid->down.by = by;
sid->down.by0 = by;
Evas_Object *content;
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
content = elm_layout_content_get(obj, NULL);
static void
_elm_inwin_smart_activate(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_raise(obj);
evas_object_show(obj);
_recalc(void *data)
{
ELM_LABEL_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1;
Evas_Coord resw;
int plainlen = 0;
ELM_LABEL_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_signal_emit(wd->resize_obj, "elm,state,slide,stop", "elm");
Eina_Bool int_ret = EINA_FALSE;
Elm_Label_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_event_freeze(evas_object_evas_get(obj));
Evas_Coord resw, resh;
ELM_LABEL_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->linewrap)
{
_elm_label_smart_text_set(Eo *obj, void *_pd, va_list *list)
{
Elm_Label_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *item = va_arg(*list, const char *);
const char *label = va_arg(*list, const char *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
_elm_label_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Label_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
int len;
Elm_Label_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->linewrap == wrap) return;
{
Evas_Coord w = va_arg(*list, Evas_Coord);
Elm_Label_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (w < 0) w = 0;
const char *text;
Elm_Label_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->ellipsis == ellipsis) return;
sd->ellipsis = ellipsis;
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
if (wd->frozen) return;
eo_do(data, elm_obj_layout_sizing_eval());
}
_sizing_eval(Evas_Object *obj, Elm_Layout_Smart_Data *sd)
{
Evas_Coord minh = -1, minw = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
evas_object_size_hint_max_set(obj, -1, -1);
snprintf(buf, sizeof(buf), "elm,state,%s,%s", type,
visible ? "visible" : "hidden");
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
edje_object_signal_emit(wd->resize_obj, buf, "elm");
/* themes might need immediate action here */
if (sub_d->type != TEXT || strcmp("elm.text", sub_d->part))
return;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
if (strncmp(sub_d->part, "elm.text.", sizeof("elm.text.") - 1) == 0)
type = sub_d->part + sizeof("elm.text.") - 1;
{
const Eina_List *l;
Elm_Layout_Sub_Object_Data *sub_d;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
EINA_LIST_FOREACH(sd->subs, l, sub_d)
{
const Eina_List *l;
const char *file, *group;
Elm_Layout_Sub_Object_Cursor *pc;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
edje_object_file_get(wd->resize_obj, &file, &group);
eo_do(obj, elm_obj_layout_sizing_eval());
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
edje_object_signal_callback_del(wd->resize_obj,
"edje,change,file", "edje",
_reload_theme);
static void
_elm_layout_smart_disable(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
const char *fh;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
static void
_elm_layout_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_event_callback_del_full
(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
const char *emission = va_arg(*list, const char *);
const char *source = va_arg(*list, const char *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_signal_emit(wd->resize_obj, emission, source);
}
Edje_Signal_Data *esd;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
esd = ELM_NEW(Edje_Signal_Data);
if (!esd) return;
if (ret) *ret = NULL;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
EINA_LIST_FOREACH(sd->edje_signals, l, esd)
{
if (!*part)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
ERR("no default content part set for object %p -- "
"part must not be NULL", wd->obj);
return EINA_FALSE;
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!_elm_layout_part_aliasing_eval(obj, sd, &part, EINA_TRUE))
return;
_elm_layout_smart_text_get(Eo *obj, void *_pd, va_list *list)
{
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *part = va_arg(*list, const char *);
const char **text = va_arg(*list, const char **);
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!_elm_layout_part_aliasing_eval(obj, sd, &part, EINA_FALSE))
return;
if (ret) *ret = NULL;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!_elm_layout_part_aliasing_eval(obj, sd, &part, EINA_FALSE))
return;
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!edje_object_part_box_append
(wd->resize_obj, part, child))
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!edje_object_part_box_prepend
(wd->resize_obj, part, child))
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!edje_object_part_box_insert_before
(wd->resize_obj, part, child, reference))
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!edje_object_part_box_insert_at
(wd->resize_obj, part, child, pos))
((Evas_Object *)sub_d->p.box.reference,
EVAS_CALLBACK_DEL, _box_reference_del, sub_d);
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_box_remove
(wd->resize_obj, sub_d->part, child);
EINA_SAFETY_ON_NULL_RETURN(part);
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Elm_Layout_Sub_Object_Data *sub_d;
Eina_List *lst;
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!edje_object_part_table_pack
(wd->resize_obj, part, child, col,
Elm_Layout_Sub_Object_Data *sub_d)
{
Evas_Object *child;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
child = sub_d->obj; /* sub_d will die in _elm_layout_smart_sub_object_del */
EINA_SAFETY_ON_NULL_RETURN(part);
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Elm_Layout_Sub_Object_Data *sub_d;
Eina_List *lst;
Eina_List *l;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_layout_freeze(obj);
Eina_Bool int_ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret =
edje_object_file_set(wd->resize_obj, file, group);
Eina_Bool int_ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eina_stringshare_replace(&(sd->klass), klass);
eina_stringshare_replace(&(sd->group), group);
{
Evas_Object **ret = va_arg(*list, Evas_Object **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = wd->resize_obj;
}
const char *key = va_arg(*list, const char *);
const char **ret = va_arg(*list, const char **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = edje_object_data_get(wd->resize_obj, key);
}
int *ret = va_arg(*list, int *);
int int_ret = 1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if ((wd->frozen)++ != 0)
{
int *ret = va_arg(*list, int *);
int int_ret = 0;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (--(wd->frozen) != 0)
{
if (ret) *ret = EINA_FALSE;
Elm_Layout_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
EINA_SAFETY_ON_NULL_RETURN(part_name);
Evas_Object *part_obj;
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
wd->can_access = !!can_access;
if (ret) *ret = EINA_TRUE;
_elm_layout_smart_edje_object_can_access_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = wd->can_access;
}
{
Eo_Dbg_Info *root = (Eo_Dbg_Info *) va_arg(*list, Eo_Dbg_Info *);
eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
- Elm_Widget_Smart_Data *wd = eo_data_get(eo_obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(eo_obj, ELM_OBJ_WIDGET_CLASS);
if (!wd) return;
double xw, yw;
Elm_List_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_size_hint_min_get(sd->box, &minw, &minh);
evas_object_size_hint_max_get(sd->box, &maxw, &maxh);
static void
_elm_list_mode_set_internal(Evas_Object *obj)
{
- Elm_List_Smart_Data *sd = eo_data_get(obj, MY_CLASS);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_List_Smart_Data *sd = eo_data_scope_get(obj, MY_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->mode == ELM_LIST_LIMIT)
{
if (!sd->h_mode)
Evas_Coord minw, minh;
Elm_List_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
static Eina_Bool
_loaded_timeout_cb(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE);
}
if (gi->wsd->loaded_timer) ecore_timer_del(gi->wsd->loaded_timer);
- gi->wsd->loaded_timer = ecore_timer_add(0.25, _loaded_timeout_cb, gi->wsd);
+ gi->wsd->loaded_timer = ecore_timer_add(0.25, _loaded_timeout_cb, gi->wsd->obj);
}
static void
((gi->wsd)->obj, SIG_TILE_LOADED_FAIL, NULL);
}
- Elm_Widget_Smart_Data *wwd = eo_data_get(gi->wsd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wwd = eo_data_scope_get(gi->wsd->obj, ELM_OBJ_WIDGET_CLASS);
gi->job = NULL;
gi->wsd->download_num--;
if (!gi->wsd->download_num)
static Eina_Bool
_download_job(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ Evas_Object *obj = data;
+ ELM_MAP_DATA_GET(obj, sd);
Eina_List *l, *ll;
Grid_Item *gi;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!eina_list_count(sd->download_list))
{
sd->try_num++;
sd->download_num++;
evas_object_smart_callback_call
- (sd->obj, SIG_TILE_LOAD, NULL);
+ (obj, SIG_TILE_LOAD, NULL);
if (sd->download_num == 1)
edje_object_signal_emit(wd->resize_obj,
"elm,state,busy,start", "elm");
else _grid_unload(g);
}
if (!sd->download_idler)
- sd->download_idler = ecore_idler_add(_download_job, sd);
+ sd->download_idler = ecore_idler_add(_download_job, sd->obj);
}
static void
static Eina_Bool
_zoom_timeout_cb(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
_smooth_update(sd);
sd->zoom_timer = NULL;
evas_object_smart_callback_call
(sd->obj, SIG_ZOOM_START, NULL);
- sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd);
+ sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
evas_object_smart_callback_call
(sd->obj, SIG_ZOOM_CHANGE, NULL);
static Eina_Bool
_zoom_anim_cb(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
if (sd->ani.cnt <= 0)
{
sd->ani.zoom = sd->zoom;
sd->ani.diff = (double)(zoom - sd->zoom) / cnt;
if (sd->zoom_animator) ecore_animator_del(sd->zoom_animator);
- sd->zoom_animator = ecore_animator_add(_zoom_anim_cb, sd);
+ sd->zoom_animator = ecore_animator_add(_zoom_anim_cb, sd->obj);
}
static void
-_sizing_eval(Elm_Map_Smart_Data *sd)
+_sizing_eval(Evas_Object *obj)
{
Evas_Coord maxw = -1, maxh = -1;
- evas_object_size_hint_max_get(sd->obj, &maxw, &maxh);
- evas_object_size_hint_max_set(sd->obj, maxw, maxh);
+ evas_object_size_hint_max_get(obj, &maxw, &maxh);
+ evas_object_size_hint_max_set(obj, maxw, maxh);
}
static void
static Eina_Bool
_scr_timeout_cb(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
_smooth_update(sd);
sd->scr_timer = NULL;
else
evas_object_smart_callback_call
(sd->obj, SIG_SCROLL_DRAG_START, NULL);
- sd->scr_timer = ecore_timer_add(0.25, _scr_timeout_cb, sd);
+ sd->scr_timer = ecore_timer_add(0.25, _scr_timeout_cb, obj);
evas_object_smart_callback_call(sd->obj, SIG_SCROLL, NULL);
}
static Eina_Bool
_long_press_cb(void *data)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
sd->long_timer = NULL;
evas_object_smart_callback_call
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
Evas_Event_Mouse_Down *ev = event_info;
if (ev->button != 1) return;
if (sd->long_timer) ecore_timer_del(sd->long_timer);
sd->ev = *ev;
sd->long_timer =
- ecore_timer_add(_elm_config->longpress_timeout, _long_press_cb, sd);
+ ecore_timer_add(_elm_config->longpress_timeout, _long_press_cb, data);
}
static void
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
Evas_Event_Mouse_Up *ev = event_info;
EINA_SAFETY_ON_NULL_RETURN(ev);
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
if (!sd->paused)
{
route = data;
sd = route->wsd;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
route->job = NULL;
if (status == 200)
name = data;
sd = name->wsd;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
name->job = NULL;
if (status == 200)
name_list = data;
sd = name_list->wsd;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
name_list->job = NULL;
if (status == 200)
ELM_MAP_DATA_GET(obj, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->src_name, NULL);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
fname = _prepare_download();
url = sd->src_name->url_cb
ELM_MAP_DATA_GET(obj, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->src_name, NULL);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
fname = _prepare_download();
url = sd->src_name->url_cb
_pinch_zoom_start_cb(void *data,
void *event_info __UNUSED__)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(data, EVAS_EVENT_FLAG_NONE);
_pinch_zoom_cb(void *data,
void *event_info)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_NONE);
_pinch_rotate_cb(void *data,
void *event_info)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_NONE);
_pinch_rotate_end_cb(void *data,
void *event_info __UNUSED__)
{
- Elm_Map_Smart_Data *sd = data;
+ ELM_MAP_DATA_GET(data, sd);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_NONE);
Elm_Map_Pan_Smart_Data *psd = _pd;
- _sizing_eval(psd->wsd);
+ _sizing_eval(psd->wsd->obj);
elm_map_zoom_mode_set(psd->wobj, psd->wsd->mode);
evas_object_smart_changed(obj);
}
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (elm_widget_focus_get(obj))
{
}
static void
+_elm_map_pan_destructor(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+{
+ Elm_Map_Pan_Smart_Data *psd = _pd;
+ eo_data_unref(psd->wobj, psd->wsd);
+ eo_do_super(obj, MY_PAN_CLASS, eo_destructor());
+}
+
+static void
_elm_map_pan_class_constructor(Eo_Class *klass)
{
const Eo_Op_Func_Description func_desc[] = {
+ EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _elm_map_pan_destructor),
+
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_map_pan_smart_resize),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_MOVE), _elm_map_pan_smart_move),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_CALCULATE), _elm_map_pan_smart_calculate),
EO_DEFINE_CLASS(elm_obj_map_pan_class_get, &_elm_map_pan_class_desc, ELM_OBJ_PAN_CLASS, NULL);
static void
-_elm_map_smart_theme(Eo *obj, void *_pd, va_list *list)
+_elm_map_smart_theme(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Map_Smart_Data *sd = _pd;
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
- _sizing_eval(sd);
+ _sizing_eval(obj);
if (ret) *ret = EINA_TRUE;
}
elm_widget_can_focus_set(obj, EINA_TRUE);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, priv);
+ (obj, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb, priv);
+ (obj, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb, obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, priv);
+ (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, obj);
eo_do(obj,
elm_scrollable_interface_objects_set(edje, priv->hit_rect),
_elm_config->thumbscroll_bounce_enable));
evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _changed_size_hints_cb, priv);
+ _changed_size_hints_cb, obj);
eo_do(obj,
elm_scrollable_interface_animate_start_cb_set(_scroll_animate_start_cb),
elm_scrollable_interface_scroll_cb_set(_scroll_cb));
priv->pan_obj = eo_add(MY_PAN_CLASS, evas_object_evas_get(obj));
- pan_data = eo_data_get(priv->pan_obj, MY_PAN_CLASS);
+ pan_data = eo_data_scope_get(priv->pan_obj, MY_PAN_CLASS);
+ eo_data_ref(obj, NULL);
pan_data->wobj = obj;
pan_data->wsd = priv;
elm_gesture_layer_attach(priv->g_layer, obj);
elm_gesture_layer_cb_set
(priv->g_layer, ELM_GESTURE_ZOOM, ELM_GESTURE_STATE_START,
- _pinch_zoom_start_cb, priv);
+ _pinch_zoom_start_cb, obj);
elm_gesture_layer_cb_set
(priv->g_layer, ELM_GESTURE_ZOOM, ELM_GESTURE_STATE_MOVE,
- _pinch_zoom_cb, priv);
+ _pinch_zoom_cb, obj);
elm_gesture_layer_cb_set
(priv->g_layer, ELM_GESTURE_ROTATE, ELM_GESTURE_STATE_MOVE,
- _pinch_rotate_cb, priv);
+ _pinch_rotate_cb, obj);
elm_gesture_layer_cb_set
(priv->g_layer, ELM_GESTURE_ROTATE, ELM_GESTURE_STATE_END,
- _pinch_rotate_end_cb, priv);
+ _pinch_rotate_end_cb, obj);
elm_gesture_layer_cb_set
(priv->g_layer, ELM_GESTURE_ROTATE, ELM_GESTURE_STATE_ABORT,
- _pinch_rotate_end_cb, priv);
+ _pinch_rotate_end_cb, obj);
priv->sep_maps_overlays =
evas_object_rectangle_add(evas_object_evas_get(obj));
Eina_Bool paused = va_arg(*list, int);
#ifdef HAVE_ELEMENTARY_ECORE_CON
Elm_Map_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->paused == !!paused) return;
sd->paused = !!paused;
if ((!sd->wheel_disabled) && (disabled))
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, sd);
+ (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, obj);
else if ((sd->wheel_disabled) && (!disabled))
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, sd);
+ (obj, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel_cb, obj);
sd->wheel_disabled = !!disabled;
#else
(void)obj;
char fname[PATH_MAX], fname2[PATH_MAX];
Elm_Map_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
EINA_SAFETY_ON_NULL_RETURN(sd->src_route);
Evas_Coord x, y, w, h;
ELM_MAPBUF_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_geometry_get(wd->resize_obj, &x, &y, &w, &h);
evas_object_resize(sd->content, w, h);
_configure(Evas_Object *obj, Eina_Bool update_force)
{
ELM_MAPBUF_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->content) return;
Evas_Coord x, y, w, h, x2, y2, w2, h2;
_elm_mapbuf_smart_content_set(Eo *obj, void *_pd, va_list *list)
{
Elm_Mapbuf_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *part = va_arg(*list, const char *);
Evas_Object *content = va_arg(*list, Evas_Object *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = NULL;
Elm_Mapbuf_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (part && strcmp(part, "default")) return;
if (!sd->content) return;
evas_object_size_hint_max_set(sd->location, bw, h_p);
elm_hover_target_set(sd->hv, sd->location);
- hover = eo_data_get(sd->hv, ELM_OBJ_WIDGET_CLASS);
+ hover = eo_data_scope_get(sd->hv, ELM_OBJ_WIDGET_CLASS);
edje_object_part_geometry_get(hover->resize_obj, "bottom", NULL,
NULL, &bw, &bh);
evas_object_size_hint_min_set(obj, bw, bh);
void *event_info __UNUSED__)
{
ELM_MENU_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_RESIZE, _parent_resize_cb, wd->obj);
Evas_Coord mw = -1, mh = -1;
Elm_Panel_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->delete_me) return;
_orient_set_do(Evas_Object *obj)
{
ELM_PANEL_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
switch (sd->orient)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
Eina_Bool int_ret = EINA_FALSE;
Elm_Panel_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!sd->content) goto end;
const char *source __UNUSED__)
{
ELM_PANEL_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->hidden)
{
Eina_List *l;
Elm_Panel_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
sd->delete_me = EINA_TRUE;
static void
_elm_panel_smart_access(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool is_access = va_arg(*list, int);
if (is_access)
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->horizontal)
eina_stringshare_replace(&ld->group, "horizontal");
Evas_Object *left, *right;
Elm_Panes_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Elm_Focus_Direction dir = va_arg(*list, Elm_Focus_Direction);
Evas_Object **next = va_arg(*list, Evas_Object **);
static void
_elm_panes_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ELM_PANES_DATA_GET(obj, sd);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
double w, h;
Elm_Panes_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_get
(wd->resize_obj, "elm.bar", &w, &h);
{
double size = va_arg(*list, double);
Elm_Panes_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (size < 0.0) size = 0.0;
else if (size > 1.0)
double scale;
ELM_PHOTO_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->size <= 0) return;
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
Elm_Photo_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
Evas_Coord w, h;
ELM_PHOTO_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->fill_inside)
{
_elm_photo_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Photo_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
{
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_size_hint_max_get
(wd->resize_obj, &maxw, &maxh);
Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh, gw, gh, tx, ty;
ELM_PHOTOCAM_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh);
evas_output_viewport_get(evas_object_evas_get(obj), &cvx, &cvy, &cvw, &cvh);
Evas_Coord ox, oy, ow, oh;
Elm_Photocam_Pan_Smart_Data *psd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(psd->wobj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(psd->wobj, ELM_OBJ_WIDGET_CLASS);
evas_object_geometry_get(obj, &ox, &oy, &ow, &oh);
_image_place(
}
static void
+_elm_photocam_pan_destructor(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+{
+ Elm_Photocam_Pan_Smart_Data *psd = _pd;
+ eo_data_unref(psd->wobj, psd->wsd);
+ eo_do_super(obj, MY_PAN_CLASS, eo_destructor());
+}
+
+static void
_photocam_pan_class_constructor(Eo_Class *klass)
{
const Eo_Op_Func_Description func_desc[] = {
+ EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _elm_photocam_pan_destructor),
+
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_photocam_pan_smart_resize),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_MOVE), _elm_photocam_pan_smart_move),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_CALCULATE), _elm_photocam_pan_smart_calculate),
int x, y;
ELM_PHOTOCAM_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!g->grid) return;
for (y = 0; y < g->gh; y++)
{
Elm_Photocam_Grid_Item *git = data;
ELM_PHOTOCAM_DATA_GET(git->obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(git->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(git->obj, ELM_OBJ_WIDGET_CLASS);
if (git->want)
{
Elm_Phocam_Grid *g;
ELM_PHOTOCAM_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
evas_object_show(sd->img);
sd->main_load_pending = 0;
_elm_photocam_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (elm_widget_focus_get(obj))
{
_g_layer_zoom_move_cb(void *data,
void *event_info)
{
- Elm_Photocam_Smart_Data *sd = eo_data_get(data, MY_CLASS);
+ Elm_Photocam_Smart_Data *sd = eo_data_scope_get(data, MY_CLASS);
Elm_Gesture_Zoom_Info *p = event_info;
_g_layer_zoom_do(data, sd->zoom_point_x, sd->zoom_point_y, p);
_elm_config->page_scroll_friction;
sd->g_layer_zoom.bounce.animator =
- ecore_animator_add(_bounce_eval, sd);
+ ecore_animator_add(_bounce_eval, obj);
}
else
{
eo_do(obj, elm_scrollable_interface_bounce_allow_set(bounce, bounce));
priv->pan_obj = eo_add(MY_PAN_CLASS, evas_object_evas_get(obj));
- pan_data = eo_data_get(priv->pan_obj, MY_PAN_CLASS);
+ pan_data = eo_data_scope_get(priv->pan_obj, MY_PAN_CLASS);
+ eo_data_ref(obj, NULL);
pan_data->wobj = obj;
pan_data->wsd = priv;
if (ret) *ret = EVAS_LOAD_ERROR_NONE;
Elm_Photocam_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (!eina_stringshare_replace(&sd->file, file)) return;
_grid_clear_all(obj);
Evas_Object *p_obj;
Ecore_Evas *ee;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
_image_object_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object **ret = va_arg(*list, Evas_Object **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = wd->resize_obj;
}
_elm_prefs_save(void *data)
{
ELM_PREFS_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
if (!sd->dirty || !sd->prefs_data) goto end;
Elm_Prefs_Item_Node *it)
{
char buf[PATH_MAX];
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
snprintf(buf, sizeof(buf), "%s:%s", it->page->name, it->name);
void *event_info)
{
ELM_PREFS_DATA_GET(cb_data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(cb_data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(cb_data, ELM_OBJ_WIDGET_CLASS);
evas_object_smart_callback_call
(wd->obj, SIG_PAGE_SAVED, event_info);
snprintf(buf, sizeof(buf), "%s:%s", it->page->name, it->name);
ELM_PREFS_DATA_GET(it->prefs, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(it->prefs, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(it->prefs, ELM_OBJ_WIDGET_CLASS);
if (sd->values_fetching) goto end;
double pos;
ELM_PROGRESSBAR_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
pos = sd->val;
rtl = elm_widget_mirrored_get(obj);
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_restricted_calc
(wd->resize_obj, &minw, &minh, minw, minh);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->horizontal)
eina_stringshare_replace(&ld->group, "horizontal");
_elm_progressbar_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Progressbar_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_access_callback_set
(_elm_access_object_get(obj), ELM_ACCESS_INFO, _access_info_cb, NULL);
_elm_access_callback_set
- (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, priv);
+ (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, NULL);
}
static void
{
const char *units = va_arg(*list, const char *);
Elm_Progressbar_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eina_stringshare_replace(&sd->units, units);
if (units)
{
Eina_Bool inverted = va_arg(*list, int);
Elm_Progressbar_Smart_Data*sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
inverted = !!inverted;
if (sd->inverted == inverted) return;
_elm_radio_smart_theme(Eo *obj, void *_pd, va_list *list)
{
Elm_Radio_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
_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_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
double xw = 0.0, yw = 0.0;
Elm_Scroller_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->content)
{
Evas_Coord minw, minh;
Elm_Scroller_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
{
const char *klass = va_arg(*list, const char *);
const char *group = va_arg(*list, const char *);
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
EINA_SAFETY_ON_NULL_RETURN(klass);
EINA_SAFETY_ON_NULL_RETURN(group);
_propagate_events_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool propagation = va_arg(*list, int);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_propagate_events_set(wd->resize_obj, propagation);
}
_propagate_events_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = evas_object_propagate_events_get(wd->resize_obj);
}
int item_count;
Elm_Segment_Control_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
item_count = eina_list_count(sd->items);
Elm_Segment_Item *it;
int bx, by, bw, bh, pos;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
item_count = eina_list_count(sd->items);
if (item_count <= 0) return;
Elm_Segment_Item *it = (Elm_Segment_Item *)data;
ELM_SEGMENT_CONTROL_ITEM_CHECK_OR_RETURN(it, NULL);
ELM_SEGMENT_CONTROL_DATA_GET(WIDGET(it), sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(WIDGET(it), ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(WIDGET(it), ELM_OBJ_WIDGET_CLASS);
if (wd->disabled)
return strdup(E_("State: Disabled"));
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
if (sd->horizontal)
eina_stringshare_replace(&ld->group, "horizontal");
{
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
double posx = 0.0, posy = 0.0, pos = 0.0, val;
ELM_SLIDER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_get
(wd->resize_obj, "elm.dragable.slider", &posx, &posy);
(sd->horizontal && !sd->inverted))))
pos = 1.0 - pos;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_set
(wd->resize_obj, "elm.dragable.slider", pos, pos);
}
if (sd->inverted) step *= -1.0;
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_step
(wd->resize_obj, "elm.dragable.slider", step, step);
}
if (sd->inverted) step *= -1.0;
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_step
(wd->resize_obj, "elm.dragable.slider", step, step);
}
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret;
- Elm_Layout_Smart_Data *ld = eo_data_get(obj, ELM_OBJ_LAYOUT_CLASS);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Layout_Smart_Data *ld = eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->horizontal)
{
static void
_elm_slider_smart_sizing_eval(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
if (button_y < 0) button_y = 0;
}
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_set
(wd->resize_obj, "elm.dragable.slider",
button_x, button_y);
if (button_y < 0) button_y = 0;
}
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
edje_object_part_drag_value_set
(wd->resize_obj, "elm.dragable.slider",
button_x, button_y);
_elm_slider_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Slider_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ 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_access_callback_set
(_elm_access_object_get(obj), ELM_ACCESS_INFO, _access_info_cb, NULL);
_elm_access_callback_set
- (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, priv);
+ (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, NULL);
evas_object_smart_changed(obj);
}
{
const char *units = va_arg(*list, const char *);
Elm_Slider_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eina_stringshare_replace(&sd->units, units);
if (units)
{
Eina_Bool inverted = va_arg(*list, int);
Elm_Slider_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
inverted = !!inverted;
if (sd->inverted == inverted) return;
static void
_elm_slideshow_smart_sizing_eval(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1;
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
Elm_Slideshow_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
priv->count_item_pre_before = 2;
priv->count_item_pre_after = 2;
double pos = 0.0;
ELM_SPINNER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->val_max > sd->val_min)
pos = ((sd->val - sd->val_min) / (sd->val_max - sd->val_min));
Eina_Bool ret = EINA_FALSE;
ELM_SPINNER_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
if (sd->entry_visible) return;
eo_do((Eo *)wd->resize_obj,
const char *source __UNUSED__)
{
ELM_SPINNER_DATA_GET(data, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(data, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
sd->drag_start_val = 0;
edje_object_part_drag_value_set
{
Evas_Coord minw = -1, minh = -1;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
_elm_spinner_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Spinner_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
Evas_Object *obj,
void *event_info)
{
- Elm_Thumb_Smart_Data *sd = data;
+ ELM_THUMB_DATA_GET(data, sd);
Evas_Event_Mouse_Down *ev = event_info;
if (ev->button != 1) return;
Evas_Object *obj,
void *event_info)
{
- Elm_Thumb_Smart_Data *sd = data;
+ ELM_THUMB_DATA_GET(data, sd);
Evas_Event_Mouse_Up *ev = event_info;
if (ev->button != 1) return;
Evas_Coord mw, mh;
Evas_Coord aw, ah;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
if ((sd->is_video) && (sd->thumb.format == ETHUMB_THUMB_EET))
{
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Thumb_Smart_Data *sd = data;
+ ELM_THUMB_DATA_GET(data, sd);
const char *thumb_path;
const char *thumb_key;
Evas *evas;
int r;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
evas = evas_object_evas_get(sd->obj);
if ((sd->view) && (sd->is_video ^ sd->was_video))
{
sd->thumb.retry = EINA_TRUE;
retry = eina_list_append(retry, sd);
+ eo_data_ref(sd->obj, NULL);
return;
}
}
sd->thumb.retry = EINA_TRUE;
retry = eina_list_append(retry, sd);
+ eo_data_ref(sd->obj, NULL);
return;
}
EINA_LIST_FOREACH_SAFE(retry, l, ll, sd)
{
if (_thumb_retry(sd))
- retry = eina_list_remove_list(retry, l);
+ {
+ retry = eina_list_remove_list(retry, l);
+ eo_data_unref(sd->obj, sd);
+ }
+
}
if (pending_request == 0)
EINA_LIST_FREE(retry, sd)
{
+ eo_data_unref(sd->obj, sd);
eina_stringshare_del(sd->thumb.thumb_path);
sd->thumb.thumb_path = NULL;
evas_object_del(sd->view);
sd->view = NULL;
- wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
elm_layout_signal_emit
(wd->resize_obj, EDJE_SIGNAL_LOAD_ERROR, "elm");
evas_object_smart_callback_call
const char *thumb_key,
void *data)
{
- Elm_Thumb_Smart_Data *sd = data;
+ ELM_THUMB_DATA_GET(data, sd);
if (EINA_UNLIKELY(!sd->thumb.request))
{
_on_ethumb_thumb_error(Ethumb_Client *client __UNUSED__,
void *data)
{
- Elm_Thumb_Smart_Data *sd = data;
+ ELM_THUMB_DATA_GET(data, sd);
if (EINA_UNLIKELY(!sd->thumb.request))
{
ERR("could not generate thumbnail for %s (key: %s)",
sd->thumb.file, sd->thumb.key ? sd->thumb.key : "");
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
elm_layout_signal_emit
(wd->resize_obj, EDJE_SIGNAL_GENERATE_ERROR, "elm");
evas_object_smart_callback_call
if (sd->thumb.retry)
{
retry = eina_list_remove(retry, sd);
+ eo_data_unref(sd->obj, sd);
sd->thumb.retry = EINA_FALSE;
}
if (!sd->file) return;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
elm_layout_signal_emit
(wd->resize_obj, EDJE_SIGNAL_PULSE_START, "elm");
elm_layout_signal_emit
int type __UNUSED__,
void *ev __UNUSED__)
{
- _thumb_start(data);
+ ELM_THUMB_DATA_GET(data, sd);
+ _thumb_start(sd);
return ECORE_CALLBACK_RENEW;
}
static void
_thumb_show(Elm_Thumb_Smart_Data *sd)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
evas_object_show(wd->resize_obj);
if (elm_thumb_ethumb_client_connected_get())
if (!sd->eeh)
sd->eeh = ecore_event_handler_add
- (ELM_ECORE_EVENT_ETHUMB_CONNECT, _thumbnailing_available_cb, sd);
+ (ELM_ECORE_EVENT_ETHUMB_CONNECT, _thumbnailing_available_cb, sd->obj);
}
#endif
#else
(void) _pd;
#endif
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_hide());
if (sd->thumb.retry)
{
retry = eina_list_remove(retry, sd);
+ eo_data_unref(sd->obj, sd);
sd->thumb.retry = EINA_FALSE;
}
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
}
static void
-_elm_thumb_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+_elm_thumb_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Thumb_Smart_Data *priv = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
#ifdef HAVE_ELEMENTARY_ETHUMB
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, priv);
+ (obj, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb, priv);
+ (obj, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb, obj);
#else
(void) priv;
#endif
if (sd->thumb.retry)
{
retry = eina_list_remove(retry, sd);
+ eo_data_unref(sd->obj, sd);
sd->thumb.retry = EINA_FALSE;
}
_elm_toolbar_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ELM_TOOLBAR_DATA_GET(obj, sd);
if (elm_widget_focus_get(obj))
static int
_elm_toolbar_icon_size_get(Evas_Object *obj)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *icon_size = edje_object_data_get
(wd->resize_obj, "icon_size");
Evas_Coord w, h;
ELM_TOOLBAR_DATA_GET(obj, sd);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
evas_object_smart_need_recalculate_set(sd->bx, EINA_TRUE);
evas_object_smart_calculate(sd->bx);
Elm_Toolbar_Item *it;
double scale = 0;
Elm_Toolbar_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
{
#ifdef HAVE_EMOTION
Elm_Video_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Coord minw = -1, minh = -1;
Evas_Coord w, h;
const Eina_List *themes;
char *view_theme = NULL;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
if (!int_ret) return;
Evas_Object *top;
Elm_Web_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
top = elm_widget_top_get(obj);
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
Evas_Object *top = elm_widget_top_get(sd->obj);
if (!top) return;
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
if (event_info) return;
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
if (sd->zoom.mode != ELM_WEB_ZOOM_MODE_MANUAL)
{
static Eina_Bool
_restore_zoom_mode_timer_cb(void *data)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
float tz = sd->zoom.current;
sd->zoom.timer = NULL;
static Eina_Bool
_reset_zoom_timer_cb(void *data)
{
- Elm_Web_Smart_Data *sd = data;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ ELM_WEB_DATA_GET(data, sd);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
- sd->zoom.timer = ecore_timer_add(0.0, _restore_zoom_mode_timer_cb, sd);
+ sd->zoom.timer = ecore_timer_add(0.0, _restore_zoom_mode_timer_cb, data);
ewk_view_zoom_set(wd->resize_obj, 1.0, 0, 0);
return EINA_FALSE;
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
if (!(sd->zoom.mode != ELM_WEB_ZOOM_MODE_MANUAL))
return;
if (sd->zoom.timer)
ecore_timer_del(sd->zoom.timer);
- sd->zoom.timer = ecore_timer_add(0.5, _reset_zoom_timer_cb, sd);
+ sd->zoom.timer = ecore_timer_add(0.5, _reset_zoom_timer_cb, data);
}
static void
Evas_Object *obj,
void *event_info)
{
- Elm_Web_Smart_Data *sd = data;
+ ELM_WEB_DATA_GET(data, sd);
Evas_Object *notify, *list;
Ewk_Menu *m = event_info;
Ewk_Menu_Item *it;
_bring_in_anim_cb(void *data,
double pos)
{
- Elm_Web_Smart_Data *sd = data;
- Elm_Widget_Smart_Data *wd = eo_data_get(sd->obj, ELM_OBJ_WIDGET_CLASS);
+ ELM_WEB_DATA_GET(data, sd);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(data, ELM_OBJ_WIDGET_CLASS);
Evas_Object *frame =
ewk_view_frame_main_get(wd->resize_obj);
priv->input_method = ELM_WIN_KEYBOARD_OFF;
evas_object_smart_callback_add
(resize_obj, "inputmethod,changed",
- _ewk_view_inputmethod_change_cb, priv);
+ _ewk_view_inputmethod_change_cb, obj);
evas_object_smart_callback_add
(resize_obj, "load,started",
- _ewk_view_load_started_cb, priv);
+ _ewk_view_load_started_cb, obj);
evas_object_smart_callback_add
(resize_obj, "popup,create",
- _ewk_view_popup_create_cb, priv);
+ _ewk_view_popup_create_cb, obj);
evas_object_smart_callback_add
(resize_obj, "load,finished",
- _ewk_view_load_finished_cb, priv);
+ _ewk_view_load_finished_cb, obj);
evas_object_smart_callback_add
(resize_obj, "viewport,changed",
- _ewk_view_viewport_changed_cb, priv);
+ _ewk_view_viewport_changed_cb, obj);
evas_object_smart_callback_add
(resize_obj, "view,resized",
- _ewk_view_resized_cb, priv);
+ _ewk_view_resized_cb, obj);
priv->inwin_mode = _elm_config->inwin_dialogs_enable;
priv->zoom.min =
{
Evas_Object **ret = va_arg(*list, Evas_Object **);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = wd->resize_obj;
#else
{
const char *user_agent = va_arg(*list, const char *);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ewk_view_setting_user_agent_set
(wd->resize_obj, user_agent);
const char **ret = va_arg(*list, const char **);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_setting_user_agent_get(wd->resize_obj);
#else
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_uri_set(wd->resize_obj, uri);
if (ret) *ret = int_ret;
{
const char **ret = va_arg(*list, const char **);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_uri_get(wd->resize_obj);
#else
#ifdef HAVE_ELEMENTARY_WEB
const Ewk_Text_With_Direction *txt;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
txt = ewk_view_title_get(wd->resize_obj);
if (txt) *ret = txt->string;
int b = va_arg(*list, int);
int a = va_arg(*list, int);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ewk_view_bg_color_set(wd->resize_obj, r, g, b, a);
#else
if (b) *b = 0;
if (a) *a = 0;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
return ewk_view_bg_color_get(wd->resize_obj, r, g, b, a);
#else
{
const char **ret = va_arg(*list, const char **);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_selection_get(wd->resize_obj);
#else
{
int idx = va_arg(*list, int);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ewk_view_popup_selected_set(wd->resize_obj, idx);
#else
(void)idx;
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_popup_destroy(wd->resize_obj);
if (ret) *ret = int_ret;
#else
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_text_search
(wd->resize_obj, string,
#ifdef HAVE_ELEMENTARY_WEB
unsigned int int_ret = 0;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_text_matches_mark
(wd->resize_obj, string,
case_sensitive, highlight, limit);
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_text_matches_unmark_all(wd->resize_obj);
if (ret) *ret = int_ret;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_text_matches_highlight_set
(wd->resize_obj, highlight);
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_text_matches_highlight_get(wd->resize_obj);
if (ret) *ret = int_ret;
double *ret = va_arg(*list, double *);
*ret = -1.0;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_load_progress_get(wd->resize_obj);
#else
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_stop(wd->resize_obj);
if (ret) *ret = int_ret;
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_reload(wd->resize_obj);
if (ret) *ret = int_ret;
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_reload_full(wd->resize_obj);
if (ret) *ret = int_ret;
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_back(wd->resize_obj);
if (ret) *ret = int_ret;
if (ret) *ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_forward(wd->resize_obj);
if (ret) *ret = int_ret;
#ifdef HAVE_ELEMENTARY_WEB
Eina_Bool int_ret;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int_ret = ewk_view_navigate(wd->resize_obj, steps);
if (ret) *ret = int_ret;
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
*ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_back_possible(wd->resize_obj);
#else
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
*ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_forward_possible(wd->resize_obj);
#else
*ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_navigate_possible(wd->resize_obj, steps);
#else
*ret = EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_history_enable_get(wd->resize_obj);
#else
{
Eina_Bool enable = va_arg(*list, int);
#ifdef HAVE_ELEMENTARY_WEB
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
ewk_view_history_enable_set(wd->resize_obj, enable);
#else
#ifdef HAVE_ELEMENTARY_WEB
Elm_Web_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
int vw, vh, cx, cy;
float z = 1.0;
#ifdef HAVE_ELEMENTARY_WEB
Elm_Web_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Object *frame =
ewk_view_frame_main_get(wd->resize_obj);
#ifdef HAVE_ELEMENTARY_WEB
Elm_Web_Smart_Data *sd = _pd;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
Evas_Object *frame =
ewk_view_frame_main_get(wd->resize_obj);
if (sd->bring_in.animator)
ecore_animator_del(sd->bring_in.animator);
sd->bring_in.animator = ecore_animator_timeline_add(
- _elm_config->bring_in_scroll_friction, _bring_in_anim_cb, sd);
+ _elm_config->bring_in_scroll_friction, _bring_in_anim_cb, obj);
#else
(void)obj;
(void)_pd;
static void
_elm_web_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
#ifdef HAVE_ELEMENTARY_WEB
elm_widget_resize_object_set(obj, _view_add(obj));
_webkit_view_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object **ret = va_arg(*list, Evas_Object **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = wd->resize_obj;
}
static void
_uri_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const char *uri = va_arg(*list, const char *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
_uri_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
const char **ret = va_arg(*list, const char **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_url_get(wd->resize_obj);
}
_title_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
const char **ret = va_arg(*list, const char **);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
*ret = ewk_view_title_get(wd->resize_obj);
}
#define MY_CLASS_NAME "elm_widget"
-#define ELM_WIDGET_DATA_GET(o, wd) \
- Elm_Widget_Smart_Data *wd; \
- wd = eo_data_get(o, MY_CLASS)
+#define ELM_WIDGET_DATA_GET(o, wd) \
+ Elm_Widget_Smart_Data *wd = NULL; \
+ if (eo_isa(o, MY_CLASS)) wd = eo_data_scope_get(o, MY_CLASS)
#define API_ENTRY \
ELM_WIDGET_DATA_GET(obj, sd); \
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Widget_Smart_Data *sd = data;
+ ELM_WIDGET_DATA_GET(data, sd);
if (_elm_widget_is(obj))
{
}
static void
-_elm_widget_smart_del(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
+_elm_widget_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
{
Evas_Object *sobj;
Elm_Translate_String_Data *ts;
{
/* detach it from us */
evas_object_event_callback_del_full
- (sd->hover_obj, EVAS_CALLBACK_DEL, _on_sub_obj_del, sd);
+ (sd->hover_obj, EVAS_CALLBACK_DEL, _on_sub_obj_del, obj);
sd->hover_obj = NULL;
}
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Widget_Smart_Data *sd = data;
+ ELM_WIDGET_DATA_GET(data, sd);
Evas_Event_Mouse_Down *ev = event_info;
if (!(ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD))
sd->still_in = EINA_TRUE;
Evas_Object *obj,
void *event_info)
{
- Elm_Widget_Smart_Data *sd = data;
+ ELM_WIDGET_DATA_GET(data, sd);
Evas_Event_Mouse_Move *ev = event_info;
if (sd->still_in)
{
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Widget_Smart_Data *sd = data;
+ ELM_WIDGET_DATA_GET(data, sd);
if (sd->still_in)
elm_widget_focus_mouse_up_handle(obj);
sd->still_in = EINA_FALSE;
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Widget_Smart_Data *sd = data;
+ ELM_WIDGET_DATA_GET(data, sd);
sd->focus_chain = eina_list_remove(sd->focus_chain, obj);
}
sdp->child_can_focus = EINA_TRUE;
while (sdp->parent_obj)
{
- sdp = eo_data_get(sdp->parent_obj, MY_CLASS);
+ sdp = eo_data_scope_get(sdp->parent_obj, MY_CLASS);
if (sdp->child_can_focus) break;
sd->subobjs = eina_list_append(sd->subobjs, sobj);
evas_object_data_set(sobj, "elm-parent", obj);
evas_object_event_callback_add
- (sobj, EVAS_CALLBACK_DEL, _on_sub_obj_del, sd);
+ (sobj, EVAS_CALLBACK_DEL, _on_sub_obj_del, obj);
if (_elm_widget_is(sobj))
{
evas_object_event_callback_add
- (sobj, EVAS_CALLBACK_HIDE, _on_sub_obj_hide, sd);
+ (sobj, EVAS_CALLBACK_HIDE, _on_sub_obj_hide, NULL);
scale = elm_widget_scale_get(sobj);
th = elm_widget_theme_get(sobj);
sd->subobjs = eina_list_remove(sd->subobjs, sobj);
evas_object_event_callback_del_full
- (sobj, EVAS_CALLBACK_DEL, _on_sub_obj_del, sd);
+ (sobj, EVAS_CALLBACK_DEL, _on_sub_obj_del, obj);
if (_elm_widget_is(sobj))
evas_object_event_callback_del_full
- (sobj, EVAS_CALLBACK_HIDE, _on_sub_obj_hide, sd);
+ (sobj, EVAS_CALLBACK_HIDE, _on_sub_obj_hide, NULL);
if (ret) *ret = EINA_TRUE;
}
{
evas_object_event_callback_del_full(obj,
EVAS_CALLBACK_MOUSE_DOWN,
- _obj_mouse_down, sd);
+ _obj_mouse_down, obj);
evas_object_event_callback_del_full(obj,
EVAS_CALLBACK_MOUSE_MOVE,
- _obj_mouse_move, sd);
+ _obj_mouse_move, obj);
evas_object_event_callback_del_full(obj,
EVAS_CALLBACK_MOUSE_UP,
- _obj_mouse_up, sd);
+ _obj_mouse_up, obj);
return;
}
evas_object_smart_member_add(sobj, obj);
evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN,
- _obj_mouse_down, sd);
+ _obj_mouse_down, obj);
evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_MOVE,
- _obj_mouse_move, sd);
+ _obj_mouse_move, obj);
evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP,
- _obj_mouse_up, sd);
+ _obj_mouse_up, obj);
_smart_reconfigure(sd);
}
if (sd->hover_obj)
{
evas_object_event_callback_del_full(sd->hover_obj, EVAS_CALLBACK_DEL,
- _on_sub_obj_del, sd);
+ _on_sub_obj_del, obj);
}
sd->hover_obj = sobj;
if (sd->hover_obj)
{
evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL,
- _on_sub_obj_del, sd);
+ _on_sub_obj_del, obj);
_smart_reconfigure(sd);
}
}
if (sdp->child_can_focus) break;
sdp->child_can_focus = EINA_TRUE;
- sdp = eo_data_get(sdp->parent_obj, MY_CLASS);
+ sdp = eo_data_scope_get(sdp->parent_obj, MY_CLASS);
}
}
}
(!(event_flags && ((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD))))
{
ELM_WIDGET_CHECK(parent);
- Elm_Widget_Smart_Data *sd = eo_data_get(parent, MY_CLASS);
+ Elm_Widget_Smart_Data *sd = eo_data_scope_get(parent, MY_CLASS);
Eina_Bool int_ret = EINA_FALSE;
eo_do(parent, elm_wdg_event(obj, type, event_info, &int_ret));
EINA_LIST_FOREACH(objs, l, o)
{
evas_object_event_callback_add(o, EVAS_CALLBACK_DEL,
- _elm_object_focus_chain_del_cb, sd);
+ _elm_object_focus_chain_del_cb, obj);
}
sd->focus_chain = objs;
EINA_LIST_FOREACH_SAFE(sd->focus_chain, l, l_next, o)
{
evas_object_event_callback_del_full(o, EVAS_CALLBACK_DEL,
- _elm_object_focus_chain_del_cb, sd);
+ _elm_object_focus_chain_del_cb, obj);
sd->focus_chain = eina_list_remove_list(sd->focus_chain, l);
}
}
if (!_elm_widget_focus_chain_manager_is(obj)) return;
evas_object_event_callback_del_full(child, EVAS_CALLBACK_DEL,
- _elm_object_focus_chain_del_cb, sd);
+ _elm_object_focus_chain_del_cb, obj);
if (!relative_child)
sd->focus_chain = eina_list_append(sd->focus_chain, child);
if (!_elm_widget_focus_chain_manager_is(obj)) return;
evas_object_event_callback_del_full(child, EVAS_CALLBACK_DEL,
- _elm_object_focus_chain_del_cb, sd);
+ _elm_object_focus_chain_del_cb, obj);
if (!relative_child)
sd->focus_chain = eina_list_prepend(sd->focus_chain, child);
{
o = elm_widget_parent_get(parent);
if (!o) break;
- sd = eo_data_get(o, MY_CLASS);
+ sd = eo_data_scope_get(o, MY_CLASS);
if (sd->disabled || sd->tree_unfocusable) return;
if (sd->focused) break;
parent = o;
parent2 = elm_widget_parent_get(parent);
if (!parent2) parent2 = elm_widget_parent2_get(parent);
parent = parent2;
- sd = eo_data_get(parent, MY_CLASS);
+ sd = eo_data_scope_get(parent, MY_CLASS);
if (sd)
{
if ((sd->resize_obj) && (elm_widget_focus_get(sd->resize_obj)))
parent_obj = sd->parent_obj;
child_obj = sd->obj;
if ((!parent_obj) || (!_elm_widget_is(parent_obj))) break;
- sd = eo_data_get(parent_obj, MY_CLASS);
+ sd = eo_data_scope_get(parent_obj, MY_CLASS);
if (!sd) break;
evas_object_geometry_get(parent_obj, &px, &py, NULL, NULL);
#define ELM_WIDGET_DATA_GET_OR_RETURN(o, ptr) \
Elm_Widget_Smart_Data *ptr; \
ptr = (o ? \
- eo_data_get(o, ELM_OBJ_WIDGET_CLASS) : \
+ eo_data_scope_get(o, ELM_OBJ_WIDGET_CLASS) : \
NULL); \
if (!ptr) \
{ \
*/
#define ELM_ACTIONSLIDER_DATA_GET(o, sd) \
- Elm_Actionslider_Smart_Data * sd = eo_data_get(o, ELM_OBJ_ACTIONSLIDER_CLASS)
+ Elm_Actionslider_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ACTIONSLIDER_CLASS)
#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN(o, ptr) \
ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
*/
#define ELM_BG_DATA_GET(o, sd) \
- Elm_Bg_Smart_Data * sd = eo_data_get(o, ELM_OBJ_BG_CLASS)
+ Elm_Bg_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_BG_CLASS)
#define ELM_BG_DATA_GET_OR_RETURN(o, ptr) \
ELM_BG_DATA_GET(o, ptr); \
*/
#define ELM_BOX_DATA_GET(o, sd) \
- Elm_Box_Smart_Data * sd = eo_data_get(o, ELM_OBJ_BOX_CLASS)
+ Elm_Box_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_BOX_CLASS)
#define ELM_BOX_DATA_GET_OR_RETURN(o, ptr) \
ELM_BOX_DATA_GET(o, ptr); \
*/
#define ELM_BUBBLE_DATA_GET(o, sd) \
- Elm_Bubble_Smart_Data * sd = eo_data_get(o, ELM_OBJ_BUBBLE_CLASS)
+ Elm_Bubble_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_BUBBLE_CLASS)
#define ELM_BUBBLE_DATA_GET_OR_RETURN(o, ptr) \
ELM_BUBBLE_DATA_GET(o, ptr); \
*/
#define ELM_BUTTON_DATA_GET(o, sd) \
- Elm_Button_Smart_Data * sd = eo_data_get(o, ELM_OBJ_BUTTON_CLASS)
+ Elm_Button_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_BUTTON_CLASS)
#define ELM_BUTTON_DATA_GET_OR_RETURN(o, ptr) \
ELM_BUTTON_DATA_GET(o, ptr); \
*/
#define ELM_CALENDAR_DATA_GET(o, sd) \
- Elm_Calendar_Smart_Data * sd = eo_data_get(o, ELM_OBJ_CALENDAR_CLASS)
+ Elm_Calendar_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CALENDAR_CLASS)
#define ELM_CALENDAR_CHECK(obj) \
if (!eo_isa((obj), ELM_OBJ_CALENDAR_CLASS)) \
*/
#define ELM_CHECK_DATA_GET(o, sd) \
- Elm_Check_Smart_Data * sd = eo_data_get(o, ELM_OBJ_CHECK_CLASS)
+ Elm_Check_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CHECK_CLASS)
#define ELM_CHECK_DATA_GET_OR_RETURN(o, ptr) \
ELM_CHECK_DATA_GET(o, ptr); \
*/
#define ELM_CLOCK_DATA_GET(o, sd) \
- Elm_Clock_Smart_Data * sd = eo_data_get(o, ELM_OBJ_CLOCK_CLASS)
+ Elm_Clock_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CLOCK_CLASS)
#define ELM_CLOCK_DATA_GET_OR_RETURN(o, ptr) \
ELM_CLOCK_DATA_GET(o, ptr); \
*/
#define ELM_COLORSELECTOR_DATA_GET(o, sd) \
- Elm_Colorselector_Smart_Data * sd = eo_data_get(o, ELM_OBJ_COLORSELECTOR_CLASS)
+ Elm_Colorselector_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_COLORSELECTOR_CLASS)
#define ELM_COLORSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_COLORSELECTOR_DATA_GET(o, ptr); \
*/
#define ELM_CONFORMANT_DATA_GET(o, sd) \
- Elm_Conformant_Smart_Data * sd = eo_data_get(o, ELM_OBJ_CONFORMANT_CLASS)
+ Elm_Conformant_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CONFORMANT_CLASS)
#define ELM_CONFORMANT_DATA_GET_OR_RETURN(o, ptr) \
ELM_CONFORMANT_DATA_GET(o, ptr); \
*/
#define ELM_CTXPOPUP_DATA_GET(o, sd) \
- Elm_Ctxpopup_Smart_Data * sd = eo_data_get(o, ELM_OBJ_CTXPOPUP_CLASS)
+ Elm_Ctxpopup_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CTXPOPUP_CLASS)
#define ELM_CTXPOPUP_DATA_GET_OR_RETURN(o, ptr) \
ELM_CTXPOPUP_DATA_GET(o, ptr); \
*/
#define ELM_DATETIME_DATA_GET(o, sd) \
- Elm_Datetime_Smart_Data * sd = eo_data_get(o, ELM_OBJ_DATETIME_CLASS)
+ Elm_Datetime_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_DATETIME_CLASS)
#define ELM_DATETIME_DATA_GET_OR_RETURN(o, ptr) \
ELM_DATETIME_DATA_GET(o, ptr); \
*/
#define ELM_DAYSELECTOR_DATA_GET(o, sd) \
- Elm_Dayselector_Smart_Data * sd = eo_data_get(o, ELM_OBJ_DAYSELECTOR_CLASS)
+ Elm_Dayselector_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_DAYSELECTOR_CLASS)
#define ELM_DAYSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_DAYSELECTOR_DATA_GET(o, ptr); \
*/
#define ELM_DISKSELECTOR_DATA_GET(o, sd) \
- Elm_Diskselector_Smart_Data * sd = eo_data_get(o, ELM_OBJ_DISKSELECTOR_CLASS)
+ Elm_Diskselector_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_DISKSELECTOR_CLASS)
#define ELM_DISKSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_DISKSELECTOR_DATA_GET(o, ptr); \
*/
#define ELM_ENTRY_DATA_GET(o, sd) \
- Elm_Entry_Smart_Data * sd = eo_data_get(o, ELM_OBJ_ENTRY_CLASS)
+ Elm_Entry_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ENTRY_CLASS)
#define ELM_ENTRY_DATA_GET_OR_RETURN(o, ptr) \
ELM_ENTRY_DATA_GET(o, ptr); \
*/
#define ELM_FILESELECTOR_DATA_GET(o, sd) \
- Elm_Fileselector_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FILESELECTOR_CLASS)
+ Elm_Fileselector_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FILESELECTOR_CLASS)
#define ELM_FILESELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_DATA_GET(o, ptr); \
*/
#define ELM_FILESELECTOR_BUTTON_DATA_GET(o, sd) \
- Elm_Fileselector_Button_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FILESELECTOR_BUTTON_CLASS)
+ Elm_Fileselector_Button_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FILESELECTOR_BUTTON_CLASS)
#define ELM_FILESELECTOR_BUTTON_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_BUTTON_DATA_GET(o, ptr); \
#define ELM_FILESELECTOR_ENTRY_DATA_GET(o, sd) \
- Elm_Fileselector_Entry_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FILESELECTOR_ENTRY_CLASS)
+ Elm_Fileselector_Entry_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FILESELECTOR_ENTRY_CLASS)
#define ELM_FILESELECTOR_ENTRY_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_ENTRY_DATA_GET(o, ptr); \
*/
#define ELM_FLIP_DATA_GET(o, sd) \
- Elm_Flip_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FLIP_CLASS)
+ Elm_Flip_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FLIP_CLASS)
#define ELM_FLIP_DATA_GET_OR_RETURN(o, ptr) \
ELM_FLIP_DATA_GET(o, ptr); \
};
#define ELM_FLIPSELECTOR_DATA_GET(o, sd) \
- Elm_Flipselector_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FLIPSELECTOR_CLASS)
+ Elm_Flipselector_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FLIPSELECTOR_CLASS)
#define ELM_FLIPSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_FLIPSELECTOR_DATA_GET(o, ptr); \
*/
#define ELM_FRAME_DATA_GET(o, sd) \
- Elm_Frame_Smart_Data * sd = eo_data_get(o, ELM_OBJ_FRAME_CLASS)
+ Elm_Frame_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_FRAME_CLASS)
#define ELM_FRAME_DATA_GET_OR_RETURN(o, ptr) \
ELM_FRAME_DATA_GET(o, ptr); \
*/
#define ELM_GENGRID_DATA_GET(o, sd) \
- Elm_Gengrid_Smart_Data * sd = eo_data_get(o, ELM_OBJ_GENGRID_CLASS)
+ Elm_Gengrid_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GENGRID_CLASS)
#define ELM_GENGRID_PAN_DATA_GET(o, sd) \
- Elm_Gengrid_Pan_Smart_Data * sd = eo_data_get(o, ELM_OBJ_GENGRID_PAN_CLASS)
+ Elm_Gengrid_Pan_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GENGRID_PAN_CLASS)
#define ELM_GENGRID_DATA_GET_OR_RETURN(o, ptr) \
ELM_GENGRID_DATA_GET(o, ptr); \
*/
#define ELM_GENLIST_DATA_GET(o, sd) \
- Elm_Genlist_Smart_Data * sd = eo_data_get(o, ELM_OBJ_GENLIST_CLASS)
+ Elm_Genlist_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GENLIST_CLASS)
#define ELM_GENLIST_PAN_DATA_GET(o, sd) \
- Elm_Genlist_Pan_Smart_Data * sd = eo_data_get(o, ELM_OBJ_GENLIST_PAN_CLASS)
+ Elm_Genlist_Pan_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GENLIST_PAN_CLASS)
#define ELM_GENLIST_DATA_GET_OR_RETURN(o, ptr) \
ELM_GENLIST_DATA_GET(o, ptr); \
*/
#define ELM_GLVIEW_DATA_GET(o, sd) \
- Elm_Glview_Smart_Data * sd = eo_data_get(o, ELM_OBJ_GLVIEW_CLASS)
+ Elm_Glview_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GLVIEW_CLASS)
#define ELM_GLVIEW_DATA_GET_OR_RETURN(o, ptr) \
ELM_GLVIEW_DATA_GET(o, ptr); \
*/
#define ELM_HOVER_DATA_GET(o, sd) \
- Elm_Hover_Smart_Data * sd = eo_data_get(o, ELM_OBJ_HOVER_CLASS)
+ Elm_Hover_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_HOVER_CLASS)
#define ELM_HOVER_DATA_GET_OR_RETURN(o, ptr) \
ELM_HOVER_DATA_GET(o, ptr); \
*/
#define ELM_HOVERSEL_DATA_GET(o, sd) \
- Elm_Hoversel_Smart_Data * sd = eo_data_get(o, ELM_OBJ_HOVERSEL_CLASS)
+ Elm_Hoversel_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_HOVERSEL_CLASS)
#define ELM_HOVERSEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_HOVERSEL_DATA_GET(o, ptr); \
*/
#define ELM_ICON_DATA_GET(o, sd) \
- Elm_Icon_Smart_Data * sd = eo_data_get(o, ELM_OBJ_ICON_CLASS)
+ Elm_Icon_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ICON_CLASS)
#define ELM_ICON_DATA_GET_OR_RETURN(o, ptr) \
ELM_ICON_DATA_GET(o, ptr); \
*/
#define ELM_IMAGE_DATA_GET(o, sd) \
- Elm_Image_Smart_Data * sd = eo_data_get(o, ELM_OBJ_IMAGE_CLASS)
+ Elm_Image_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_IMAGE_CLASS)
#define ELM_IMAGE_DATA_GET_OR_RETURN(o, ptr) \
ELM_IMAGE_DATA_GET(o, ptr); \
* @}
*/
#define ELM_INDEX_DATA_GET(o, sd) \
- Elm_Index_Smart_Data * sd = eo_data_get(o, ELM_OBJ_INDEX_CLASS)
+ Elm_Index_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_INDEX_CLASS)
#define ELM_INDEX_DATA_GET_OR_RETURN(o, ptr) \
ELM_INDEX_DATA_GET(o, ptr); \
*/
#define ELM_INWIN_DATA_GET(o, sd) \
- Elm_Inwin_Smart_Data * sd = eo_data_get(o, ELM_OBJ_WIN_INWIN_CLASS)
+ Elm_Inwin_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_WIN_INWIN_CLASS)
#define ELM_INWIN_DATA_GET_OR_RETURN(o, ptr) \
ELM_INWIN_DATA_GET(o, ptr); \
};
#define ELM_LABEL_DATA_GET(o, sd) \
- Elm_Label_Smart_Data * sd = eo_data_get(o, ELM_OBJ_LABEL_CLASS)
+ Elm_Label_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_LABEL_CLASS)
#define ELM_LABEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_LABEL_DATA_GET(o, ptr); \
*/
#define ELM_LAYOUT_DATA_GET(o, sd) \
- Elm_Layout_Smart_Data * sd = eo_data_get(o, ELM_OBJ_LAYOUT_CLASS)
+ Elm_Layout_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_LAYOUT_CLASS)
#define ELM_LAYOUT_CHECK(obj) \
if (!eo_isa(obj, ELM_OBJ_LAYOUT_CLASS)) \
*/
#define ELM_LIST_DATA_GET(o, sd) \
- Elm_List_Smart_Data * sd = eo_data_get(o, ELM_OBJ_LIST_CLASS)
+ Elm_List_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_LIST_CLASS)
#define ELM_LIST_DATA_GET_OR_RETURN(o, ptr) \
ELM_LIST_DATA_GET(o, ptr); \
*/
#define ELM_MAP_DATA_GET(o, sd) \
- Elm_Map_Smart_Data * sd = eo_data_get(o, ELM_OBJ_MAP_CLASS)
+ Elm_Map_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_MAP_CLASS)
#define ELM_MAP_PAN_DATA_GET(o, sd) \
- Elm_Map_Pan_Smart_Data * sd = eo_data_get(o, ELM_OBJ_MAP_PAN_CLASS)
+ Elm_Map_Pan_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_MAP_PAN_CLASS)
#define ELM_MAP_DATA_GET_OR_RETURN(o, ptr) \
ELM_MAP_DATA_GET(o, ptr); \
*/
#define ELM_MAPBUF_DATA_GET(o, sd) \
- Elm_Mapbuf_Smart_Data * sd = eo_data_get(o, ELM_OBJ_MAPBUF_CLASS)
+ Elm_Mapbuf_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_MAPBUF_CLASS)
#define ELM_MAPBUF_DATA_GET_OR_RETURN(o, ptr) \
ELM_MAPBUF_DATA_GET(o, ptr); \
*/
#define ELM_MENU_DATA_GET(o, sd) \
- Elm_Menu_Smart_Data * sd = eo_data_get(o, ELM_OBJ_MENU_CLASS)
+ Elm_Menu_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_MENU_CLASS)
#define ELM_MENU_DATA_GET_OR_RETURN(o, ptr) \
ELM_MENU_DATA_GET(o, ptr); \
*/
#define ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(o, ptr) \
- Elm_Multibuttonentry_Smart_Data *ptr = eo_data_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
+ Elm_Multibuttonentry_Smart_Data *ptr = eo_data_scope_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
if (!ptr) \
{ \
CRITICAL("No widget data for object %p (%s)", \
}
#define ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
- Elm_Multibuttonentry_Smart_Data * ptr = eo_data_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
+ Elm_Multibuttonentry_Smart_Data * ptr = eo_data_scope_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
if (!ptr) \
{ \
CRITICAL("No widget data for object %p (%s)", \
*/
#define ELM_NAVIFRAME_DATA_GET(o, sd) \
- Elm_Naviframe_Smart_Data * sd = eo_data_get(o, ELM_OBJ_NAVIFRAME_CLASS)
+ Elm_Naviframe_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_NAVIFRAME_CLASS)
#define ELM_NAVIFRAME_DATA_GET_OR_RETURN(o, ptr) \
ELM_NAVIFRAME_DATA_GET(o, ptr); \
*/
#define ELM_NOTIFY_DATA_GET(o, sd) \
- Elm_Notify_Smart_Data * sd = eo_data_get(o, ELM_OBJ_NOTIFY_CLASS)
+ Elm_Notify_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_NOTIFY_CLASS)
#define ELM_NOTIFY_DATA_GET_OR_RETURN(o, ptr) \
ELM_NOTIFY_DATA_GET(o, ptr); \
*/
#define ELM_PANEL_DATA_GET(o, sd) \
- Elm_Panel_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PANEL_CLASS)
+ Elm_Panel_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PANEL_CLASS)
#define ELM_PANEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_PANEL_DATA_GET(o, ptr); \
*/
#define ELM_PANES_DATA_GET(o, sd) \
- Elm_Panes_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PANES_CLASS)
+ Elm_Panes_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PANES_CLASS)
#define ELM_PANES_DATA_GET_OR_RETURN(o, ptr) \
ELM_PANES_DATA_GET(o, ptr); \
*/
#define ELM_PHOTO_DATA_GET(o, sd) \
- Elm_Photo_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PHOTO_CLASS)
+ Elm_Photo_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PHOTO_CLASS)
#define ELM_PHOTO_DATA_GET_OR_RETURN(o, ptr) \
ELM_PHOTO_DATA_GET(o, ptr); \
*/
#define ELM_PHOTOCAM_DATA_GET(o, sd) \
- Elm_Photocam_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PHOTOCAM_CLASS)
+ Elm_Photocam_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PHOTOCAM_CLASS)
#define ELM_PHOTOCAM_PAN_DATA_GET(o, sd) \
- Elm_Photocam_Pan_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PHOTOCAM_PAN_CLASS)
+ Elm_Photocam_Pan_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PHOTOCAM_PAN_CLASS)
#define ELM_PHOTOCAM_DATA_GET_OR_RETURN(o, ptr) \
ELM_PHOTOCAM_DATA_GET(o, ptr); \
*/
#define ELM_PLAYER_DATA_GET(o, sd) \
- Elm_Player_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PLAYER_CLASS)
+ Elm_Player_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PLAYER_CLASS)
#define ELM_PLAYER_DATA_GET_OR_RETURN(o, ptr) \
ELM_PLAYER_DATA_GET(o, ptr); \
*/
#define ELM_PLUG_DATA_GET(o, sd) \
- Elm_Plug_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PLUG_CLASS)
+ Elm_Plug_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PLUG_CLASS)
#define ELM_PLUG_DATA_GET_OR_RETURN(o, ptr) \
ELM_PLUG_DATA_GET(o, ptr); \
*/
#define ELM_POPUP_DATA_GET(o, sd) \
- Elm_Popup_Smart_Data * sd = eo_data_get(o, ELM_OBJ_POPUP_CLASS)
+ Elm_Popup_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_POPUP_CLASS)
#define ELM_POPUP_DATA_GET_OR_RETURN(o, ptr) \
ELM_POPUP_DATA_GET(o, ptr); \
extern const Elm_Prefs_Item_Iface *elm_prefs_item_default_widget;
#define ELM_PREFS_DATA_GET(o, sd) \
- Elm_Prefs_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PREFS_CLASS)
+ Elm_Prefs_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PREFS_CLASS)
#define ELM_PREFS_ENTRY(o, sd) \
if (!sd->data_file || !sd->page) \
*/
#define ELM_PROGRESSBAR_DATA_GET(o, sd) \
- Elm_Progressbar_Smart_Data * sd = eo_data_get(o, ELM_OBJ_PROGRESSBAR_CLASS)
+ Elm_Progressbar_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PROGRESSBAR_CLASS)
#define ELM_PROGRESSBAR_DATA_GET_OR_RETURN(o, ptr) \
ELM_PROGRESSBAR_DATA_GET(o, ptr); \
*/
#define ELM_RADIO_DATA_GET(o, sd) \
- Elm_Radio_Smart_Data * sd = eo_data_get(o, ELM_OBJ_RADIO_CLASS)
+ Elm_Radio_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_RADIO_CLASS)
#define ELM_RADIO_DATA_GET_OR_RETURN(o, ptr) \
ELM_RADIO_DATA_GET(o, ptr); \
*/
#define ELM_ROUTE_DATA_GET(o, sd) \
- Elm_Route_Smart_Data * sd = eo_data_get(o, ELM_OBJ_ROUTE_CLASS)
+ Elm_Route_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ROUTE_CLASS)
#define ELM_ROUTE_DATA_GET_OR_RETURN(o, ptr) \
ELM_ROUTE_DATA_GET(o, ptr); \
*/
#define ELM_SCROLLER_DATA_GET(o, sd) \
- Elm_Scroller_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SCROLLER_CLASS)
+ Elm_Scroller_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SCROLLER_CLASS)
#define ELM_SCROLLER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SCROLLER_DATA_GET(o, ptr); \
*/
#define ELM_SEGMENT_CONTROL_DATA_GET(o, sd) \
- Elm_Segment_Control_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SEGMENT_CONTROL_CLASS)
+ Elm_Segment_Control_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SEGMENT_CONTROL_CLASS)
#define ELM_SEGMENT_CONTROL_DATA_GET_OR_RETURN(o, ptr) \
ELM_SEGMENT_CONTROL_DATA_GET(o, ptr); \
*/
#define ELM_SEPARATOR_DATA_GET(o, sd) \
- Elm_Separator_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SEPARATOR_CLASS)
+ Elm_Separator_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SEPARATOR_CLASS)
#define ELM_SEPARATOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_SEPARATOR_DATA_GET(o, ptr); \
*/
#define ELM_SLIDER_DATA_GET(o, sd) \
- Elm_Slider_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SLIDER_CLASS)
+ Elm_Slider_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SLIDER_CLASS)
#define ELM_SLIDER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SLIDER_DATA_GET(o, ptr); \
*/
#define ELM_SLIDESHOW_DATA_GET(o, sd) \
- Elm_Slideshow_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SLIDESHOW_CLASS)
+ Elm_Slideshow_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SLIDESHOW_CLASS)
#define ELM_SLIDESHOW_DATA_GET_OR_RETURN(o, ptr) \
ELM_SLIDESHOW_DATA_GET(o, ptr); \
*/
#define ELM_SPINNER_DATA_GET(o, sd) \
- Elm_Spinner_Smart_Data * sd = eo_data_get(o, ELM_OBJ_SPINNER_CLASS)
+ Elm_Spinner_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_SPINNER_CLASS)
#define ELM_SPINNER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SPINNER_DATA_GET(o, ptr); \
*/
#define ELM_THUMB_DATA_GET(o, sd) \
- Elm_Thumb_Smart_Data * sd = eo_data_get(o, ELM_OBJ_THUMB_CLASS)
+ Elm_Thumb_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_THUMB_CLASS)
#define ELM_THUMB_DATA_GET_OR_RETURN(o, ptr) \
ELM_THUMB_DATA_GET(o, ptr); \
*/
#define ELM_TOOLBAR_DATA_GET(o, sd) \
- Elm_Toolbar_Smart_Data * sd = eo_data_get(o, ELM_OBJ_TOOLBAR_CLASS)
+ Elm_Toolbar_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_TOOLBAR_CLASS)
#define ELM_TOOLBAR_DATA_GET_OR_RETURN(o, ptr) \
ELM_TOOLBAR_DATA_GET(o, ptr); \
*/
#define ELM_VIDEO_DATA_GET(o, sd) \
- Elm_Video_Smart_Data * sd = eo_data_get(o, ELM_OBJ_VIDEO_CLASS)
+ Elm_Video_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_VIDEO_CLASS)
#define ELM_VIDEO_DATA_GET_OR_RETURN(o, ptr) \
ELM_VIDEO_DATA_GET(o, ptr); \
*/
#define ELM_WEB_DATA_GET(o, sd) \
- Elm_Web_Smart_Data * sd = eo_data_get(o, ELM_OBJ_WEB_CLASS)
+ Elm_Web_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_WEB_CLASS)
#define ELM_WEB_DATA_GET_OR_RETURN(o, ptr) \
ELM_WEB_DATA_GET(o, ptr); \
while (0)
#define ELM_WIN_DATA_GET(o, sd) \
- Elm_Win_Smart_Data * sd = eo_data_get(o, MY_CLASS)
+ Elm_Win_Smart_Data * sd = eo_data_scope_get(o, MY_CLASS)
#define ELM_WIN_DATA_GET_OR_RETURN(o, ptr) \
ELM_WIN_DATA_GET(o, ptr); \
static Eina_Bool
_shot_delay(void *data)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
_shot_do(sd);
if (sd->shot.repeat_count)
{
if (!sd->shot.info) return;
- sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay, sd);
+ sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay, sd->obj);
}
/* elm-win specific associate, does the trap while ecore_evas_object_associate()
static Elm_Win_Smart_Data *
_elm_win_associate_get(const Ecore_Evas *ee)
{
- return ecore_evas_data_get(ee, "elm_win");
+ ELM_WIN_DATA_GET(ecore_evas_data_get(ee, "elm_win"), sd);
+ return sd;
}
/* Interceptors Callbacks */
static void
_elm_win_obj_intercept_raise(void *data, Evas_Object *obj __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
TRAP(sd, raise);
}
static void
_elm_win_obj_intercept_lower(void *data, Evas_Object *obj __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
TRAP(sd, lower);
}
static void
_elm_win_obj_intercept_layer_set(void *data, Evas_Object *obj __UNUSED__, int l)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
TRAP(sd, layer_set, l);
}
static void
_elm_win_obj_callback_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
Evas_Coord w, h;
evas_object_size_hint_min_get(obj, &w, &h);
static void
_elm_win_resize_job(void *data)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
int w, h;
sd->deferred_resize_job = NULL;
EINA_SAFETY_ON_NULL_RETURN(sd);
if (sd->deferred_resize_job) ecore_job_del(sd->deferred_resize_job);
- sd->deferred_resize_job = ecore_job_add(_elm_win_resize_job, sd);
+ sd->deferred_resize_job = ecore_job_add(_elm_win_resize_job, sd->obj);
}
static void
static void
_elm_win_focus_highlight_reconfigure_job(void *data)
{
- _elm_win_focus_highlight_reconfigure((Elm_Win_Smart_Data *)data);
+ ELM_WIN_DATA_GET(data, sd);
+ _elm_win_focus_highlight_reconfigure(sd);
}
static void
ecore_job_del(sd->focus_highlight.reconf_job);
sd->focus_highlight.reconf_job = ecore_job_add(
- _elm_win_focus_highlight_reconfigure_job, sd);
+ _elm_win_focus_highlight_reconfigure_job, sd->obj);
}
static void
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
const Eina_List *items;
void *(*list_data_get)(const Eina_List *list);
const Eina_List *items;
void *(*list_data_get)(const Eina_List *list);
- Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
/* Focus chain */
if (wd->subobjs)
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
if (obj == sd->parent) sd->parent = NULL;
}
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
sd->focus_highlight.geometry_changed = EINA_TRUE;
_elm_win_focus_highlight_reconfigure_job_start(sd);
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
sd->focus_highlight.geometry_changed = EINA_TRUE;
_elm_win_focus_highlight_reconfigure_job_start(sd);
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
sd->focus_highlight.cur.target = NULL;
if (!obj) return;
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_MOVE, _elm_win_focus_target_move, sd);
+ (obj, EVAS_CALLBACK_MOVE, _elm_win_focus_target_move, sd->obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_RESIZE, _elm_win_focus_target_resize, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_win_focus_target_resize, sd->obj);
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_DEL, _elm_win_focus_target_del, sd);
+ (obj, EVAS_CALLBACK_DEL, _elm_win_focus_target_del, sd->obj);
}
static void
Evas_Object *obj = sd->focus_highlight.cur.target;
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_MOVE, _elm_win_focus_target_move, sd);
+ (obj, EVAS_CALLBACK_MOVE, _elm_win_focus_target_move, sd->obj);
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_RESIZE, _elm_win_focus_target_resize, sd);
+ (obj, EVAS_CALLBACK_RESIZE, _elm_win_focus_target_resize, sd->obj);
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_DEL, _elm_win_focus_target_del, sd);
+ (obj, EVAS_CALLBACK_DEL, _elm_win_focus_target_del, sd->obj);
}
static void
void *event_info)
{
Evas_Object *obj = event_info, *target;
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
if (sd->focus_highlight.cur.target == obj)
return;
Evas *e __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
if (!sd->focus_highlight.cur.target)
return;
evas_event_callback_del_full
(sd->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN,
- _elm_win_object_focus_in, sd);
+ _elm_win_object_focus_in, sd->obj);
evas_event_callback_del_full
(sd->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT,
- _elm_win_object_focus_out, sd);
+ _elm_win_object_focus_out, sd->obj);
}
static void
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
sd->img_obj = NULL;
}
if (sd->parent)
{
evas_object_event_callback_del_full
- (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, sd);
+ (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, obj);
sd->parent = NULL;
}
if (sd->img_obj)
{
evas_object_event_callback_del_full
- (sd->img_obj, EVAS_CALLBACK_DEL, _elm_win_on_img_obj_del, sd);
+ (sd->img_obj, EVAS_CALLBACK_DEL, _elm_win_on_img_obj_del, obj);
sd->img_obj = NULL;
}
else
_elm_win_obj_intercept_show(void *data,
Evas_Object *obj)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
// this is called to make sure all smart containers have calculated their
// sizes BEFORE we show the window to make sure it initially appears at
int type __UNUSED__,
void *event)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
Ecore_X_Event_Client_Message *e = event;
if (e->format != 32) return ECORE_CALLBACK_PASS_ON;
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
_elm_win_focus_highlight_simple_setup(sd, obj);
}
_elm_win_focus_highlight_init(Elm_Win_Smart_Data *sd)
{
evas_event_callback_add(sd->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN,
- _elm_win_object_focus_in, sd);
+ _elm_win_object_focus_in, sd->obj);
evas_event_callback_add(sd->evas,
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT,
- _elm_win_object_focus_out, sd);
+ _elm_win_object_focus_out, sd->obj);
sd->focus_highlight.cur.target = evas_focus_get(sd->evas);
_elm_win_focus_highlight_hide, NULL);
edje_object_signal_callback_add(sd->focus_highlight.top,
"elm,action,focus,anim,end", "",
- _elm_win_focus_highlight_anim_end, sd);
+ _elm_win_focus_highlight_anim_end, sd->obj);
_elm_win_focus_highlight_reconfigure_job_start(sd);
}
const char *sig __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
- if (!(sd = data)) return;
+ if (!sd) return;
/* FIXME: Change mouse pointer */
/* NB: Wayland handles moving surfaces by itself so we cannot
const char *sig __UNUSED__,
const char *source)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
- if (!(sd = data)) return;
+ if (!sd) return;
if (sd->resizing) return;
#ifdef HAVE_ELEMENTARY_WAYLAND
const char *sig __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
- if (!(sd = data)) return;
+ if (!sd) return;
if (sd->resizing) return;
#ifdef HAVE_ELEMENTARY_WAYLAND
const char *source)
{
#ifdef HAVE_ELEMENTARY_WAYLAND
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
int i;
- if (!(sd = data)) return;
+ if (!sd) return;
if (sd->resizing) return;
sd->resizing = EINA_TRUE;
const char *sig __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
- if (!(sd = data)) return;
+ if (!sd) return;
// sd->iconified = EINA_TRUE;
TRAP(sd, iconified_set, EINA_TRUE);
}
const char *sig __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
- if (!(sd = data)) return;
+ if (!sd) return;
if (sd->maximized) sd->maximized = EINA_FALSE;
else sd->maximized = EINA_TRUE;
TRAP(sd, maximized_set, sd->maximized);
const char *sig __UNUSED__,
const char *source __UNUSED__)
{
- Elm_Win_Smart_Data *sd;
+ ELM_WIN_DATA_GET(data, sd);
Evas_Object *win;
/* FIXME: After the current freeze, this should be handled differently.
* way which does not break API or the freeze. - dh
*/
- if (!(sd = data)) return;
+ if (!sd) return;
win = sd->obj;
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,move,start", "elm",
- _elm_win_frame_cb_move_start, sd);
+ _elm_win_frame_cb_move_start, obj);
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,resize,show", "*",
- _elm_win_frame_cb_resize_show, sd);
+ _elm_win_frame_cb_resize_show, obj);
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,resize,hide", "*",
- _elm_win_frame_cb_resize_hide, sd);
+ _elm_win_frame_cb_resize_hide, obj);
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,resize,start", "*",
- _elm_win_frame_cb_resize_start, sd);
+ _elm_win_frame_cb_resize_start, obj);
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,minimize", "elm",
- _elm_win_frame_cb_minimize, sd);
+ _elm_win_frame_cb_minimize, obj);
edje_object_signal_callback_add
(sd->frame_obj, "elm,action,maximize", "elm",
- _elm_win_frame_cb_maximize, sd);
+ _elm_win_frame_cb_maximize, obj);
edje_object_signal_callback_add
- (sd->frame_obj, "elm,action,close", "elm", _elm_win_frame_cb_close, sd);
+ (sd->frame_obj, "elm,action,close", "elm", _elm_win_frame_cb_close, obj);
if (sd->title)
{
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
-
- elm_widget_focus_hide_handle(sd->obj);
+ elm_widget_focus_hide_handle(data);
}
static void
Evas_Object *obj __UNUSED__,
void *event_info)
{
- Elm_Win_Smart_Data *sd = data;
Evas_Event_Mouse_Up *ev = event_info;
if (!(ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD))
- elm_widget_focus_mouse_up_handle(sd->obj);
+ elm_widget_focus_mouse_up_handle(data);
}
static void
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
- elm_widget_focus_steal(sd->obj);
+ elm_widget_focus_steal(data);
}
static void
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
- elm_widget_focused_object_clear(sd->obj);
+ elm_widget_focused_object_clear(data);
}
static void
evas_object_image_filled_set(sd->img_obj, EINA_TRUE);
evas_object_event_callback_add
- (sd->img_obj, EVAS_CALLBACK_DEL, _elm_win_on_img_obj_del, sd);
+ (sd->img_obj, EVAS_CALLBACK_DEL, _elm_win_on_img_obj_del, sd->obj);
evas_object_event_callback_add
- (sd->img_obj, EVAS_CALLBACK_HIDE, _win_img_hide, sd);
+ (sd->img_obj, EVAS_CALLBACK_HIDE, _win_img_hide, sd->obj);
evas_object_event_callback_add
- (sd->img_obj, EVAS_CALLBACK_MOUSE_UP, _win_img_mouse_up, sd);
+ (sd->img_obj, EVAS_CALLBACK_MOUSE_UP, _win_img_mouse_up, sd->obj);
evas_object_event_callback_add
- (sd->img_obj, EVAS_CALLBACK_FOCUS_IN, _win_img_focus_in, sd);
+ (sd->img_obj, EVAS_CALLBACK_FOCUS_IN, _win_img_focus_in, sd->obj);
evas_object_event_callback_add
- (sd->img_obj, EVAS_CALLBACK_FOCUS_OUT, _win_img_focus_out, sd);
+ (sd->img_obj, EVAS_CALLBACK_FOCUS_OUT, _win_img_focus_out, sd->obj);
}
static void
Evas_Object *obj,
void *event_info __UNUSED__)
{
- Elm_Win_Smart_Data *sd = data;
+ ELM_WIN_DATA_GET(data, sd);
if (sd->icon == obj) sd->icon = NULL;
}
ENGINE_COMPARE(ELM_OPENGL_X11))
{
sd->x.client_message_handler = ecore_event_handler_add
- (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
+ (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, obj);
sd->x.property_handler = ecore_event_handler_add
- (ECORE_X_EVENT_WINDOW_PROPERTY, _elm_win_property_change, sd);
+ (ECORE_X_EVENT_WINDOW_PROPERTY, _elm_win_property_change, obj);
}
#endif
if (sd->parent)
evas_object_event_callback_add
- (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, sd);
+ (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, obj);
sd->evas = ecore_evas_get(sd->ee);
elm_widget_parent2_set(obj, parent);
/* use own version of ecore_evas_object_associate() that does TRAP() */
- ecore_evas_data_set(sd->ee, "elm_win", sd);
+ ecore_evas_data_set(sd->ee, "elm_win", obj);
evas_object_event_callback_add
(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _elm_win_obj_callback_changed_size_hints, sd);
+ _elm_win_obj_callback_changed_size_hints, obj);
evas_object_intercept_raise_callback_add
- (obj, _elm_win_obj_intercept_raise, sd);
+ (obj, _elm_win_obj_intercept_raise, obj);
evas_object_intercept_lower_callback_add
- (obj, _elm_win_obj_intercept_lower, sd);
+ (obj, _elm_win_obj_intercept_lower, obj);
evas_object_intercept_stack_above_callback_add
- (obj, _elm_win_obj_intercept_stack_above, sd);
+ (obj, _elm_win_obj_intercept_stack_above, obj);
evas_object_intercept_stack_below_callback_add
- (obj, _elm_win_obj_intercept_stack_below, sd);
+ (obj, _elm_win_obj_intercept_stack_below, obj);
evas_object_intercept_layer_set_callback_add
- (obj, _elm_win_obj_intercept_layer_set, sd);
+ (obj, _elm_win_obj_intercept_layer_set, obj);
evas_object_intercept_show_callback_add
- (obj, _elm_win_obj_intercept_show, sd);
+ (obj, _elm_win_obj_intercept_show, obj);
TRAP(sd, name_class_set, name, _elm_appname);
ecore_evas_callback_delete_request_set(sd->ee, _elm_win_delete_request);
ecore_evas_callback_focus_out_set(sd->ee, _elm_win_focus_out);
ecore_evas_callback_move_set(sd->ee, _elm_win_move);
ecore_evas_callback_state_change_set(sd->ee, _elm_win_state_change);
- evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE, _elm_win_cb_hide, sd);
- evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW, _elm_win_cb_show, sd);
+ evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE, _elm_win_cb_hide, NULL);
+ evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW, _elm_win_cb_show, NULL);
evas_image_cache_set(sd->evas, (_elm_config->image_cache * 1024));
evas_font_cache_set(sd->evas, (_elm_config->font_cache * 1024));
#ifdef ELM_DEBUG
Evas_Modifier_Mask mask = evas_key_modifier_mask_get(sd->evas, "Control");
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_KEY_DOWN, _debug_key_down, sd);
+ (obj, EVAS_CALLBACK_KEY_DOWN, _debug_key_down, NULL);
if (evas_object_key_grab(obj, "F12", mask, 0, EINA_TRUE))
INF("Ctrl+F12 key combination exclusive for dot tree generation\n");
}
static void
-_icon_object_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
+_icon_object_set(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *icon = va_arg(*list, Evas_Object *);
Elm_Win_Smart_Data *sd = _pd;
if (sd->icon)
evas_object_event_callback_del_full
- (sd->icon, EVAS_CALLBACK_DEL, _elm_win_on_icon_del, sd);
+ (sd->icon, EVAS_CALLBACK_DEL, _elm_win_on_icon_del, obj);
sd->icon = icon;
if (sd->icon)
evas_object_event_callback_add
- (sd->icon, EVAS_CALLBACK_DEL, _elm_win_on_icon_del, sd);
+ (sd->icon, EVAS_CALLBACK_DEL, _elm_win_on_icon_del, obj);
#ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd);
#endif