EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
/* smart callbacks called:
* "clicked" - the user clicked the icon
- * "drop" - Something was dropped on the widget
* "drag,start" - Someone started dragging the image out of the object
* "drag,end" - Dragged item was dropped (somewhere)
*/
* "clicked,double" - when mouse/finger double-clicked
* "load" - when photo load begins
* "loaded" - when photo load done
- * "load,details" - when detailed image load begins
- * "loaded,details" - when detailed image load done
+ * "load,detail" - when detailed image load begins
+ * "loaded,detail" - when detailed image load done
* "zoom,start" - when zooming started
* "zoom,stop" - when zooming stopped
* "zoom,change" - when auto zoom mode changed zoom level
EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
+ /* smart callbacks called:
+ * "changed" -when the user clicks on a segment item which is not previously
+ * selected and get selected. The event_info parameter is the
+ * segment item index.
+ */
#ifdef __cplusplus
}
static void _sizing_eval(Evas_Object *obj);
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
+static const char SIG_CLICKED[] = "clicked";
+static const char SIG_PRESS[] = "press";
+static const char SIG_UNPRESS[] = "unpress";
+static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CLICKED, ""},
+ {SIG_PRESS, ""},
+ {SIG_UNPRESS, ""},
+ {SIG_CLICKED_DOUBLE, ""},
+ {NULL, NULL}
+};
+
static void
_del_hook(Evas_Object *obj)
{
}
}
+
static void
_clicked(void *data, Evas_Object *obj __UNUSED__ , const char *emission __UNUSED__, const char *source __UNUSED__)
{
- evas_object_smart_callback_call(data, "clicked", NULL);
+ evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
}
static void
static void
_press(void *data, Evas_Object *obj __UNUSED__ , const char *emission __UNUSED__, const char *source __UNUSED__)
{
- evas_object_smart_callback_call(data, "press", NULL);
+ evas_object_smart_callback_call(data, SIG_PRESS, NULL);
}
static void
_unpress(void *data, Evas_Object *obj __UNUSED__ , const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
- evas_object_smart_callback_call(data, "unpress", NULL);
+ evas_object_smart_callback_call(data, SIG_UNPRESS, NULL);
if (wd->clicked_double)
{
- evas_object_smart_callback_call(data, "clicked,double", NULL);
+ evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL);
wd->clicked_double = EINA_FALSE;
}
}
evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_sizing_eval(obj);
return obj;
* Signals that you can add callbacks for are:
*
* "clicked" - This is called when a user has clicked the photo
- * "drop" - Something was dropped on the widget
* "drag,start" - Someone started dragging the image out of the object
* "drag,end" - Dragged item was dropped (somewhere)
*/
static void _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info);
+static const char SIG_CLICKED[] = "clicked";
+static const char SIG_DRAG_START[] = "drag,start";
+static const char SIG_DRAG_END[] = "drag,end";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CLICKED, ""},
+ {SIG_DRAG_START, ""},
+ {SIG_DRAG_END, ""},
+ {NULL, NULL}
+};
+
+
static void
_del_hook(Evas_Object *obj)
{
_drag_done_cb(void *unused __UNUSED__, Evas_Object *obj)
{
elm_object_scroll_freeze_pop(obj);
- evas_object_smart_callback_call(obj, "drag,end", NULL);
+ evas_object_smart_callback_call(obj, SIG_DRAG_END, NULL);
}
static Eina_Bool
}
elm_object_scroll_freeze_push(objv);
- evas_object_smart_callback_call(objv, "drag,start", NULL);
+ evas_object_smart_callback_call(objv, SIG_DRAG_START, NULL);
return 0; /* Don't call again */
}
wd->longtimer = NULL;
}
- evas_object_smart_callback_call(data, "clicked", NULL);
+ evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
}
evas_object_event_callback_add(icon, EVAS_CALLBACK_RESIZE,
_icon_move_resize, obj);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_sizing_eval(obj);
return obj;
* "load" - Photo load begins.
* "loaded" - This is called when the image file load is complete for the first
* view (low resolution blurry version).
- * "load,details" - Photo detailed data load begins.
- * "loaded,details" - This is called when the image file load is complete for
+ * "load,detail" - Photo detailed data load begins.
+ * "loaded,detail" - This is called when the image file load is complete for
* the detailed image data (full resolution needed).
* "zoom,start" - Zoom animation started.
* "zoom,stop" - Zoom animation stopped.
static Grid *grid_create(Evas_Object *obj);
static void grid_load(Evas_Object *obj, Grid *g);
+static const char SIG_CLICKED[] = "clicked";
+static const char SIG_PRESS[] = "press";
+static const char SIG_LONGPRESSED[] = "longpressed";
+static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
+static const char SIG_LOAD[] = "load";
+static const char SIG_LOADED[] = "loaded";
+static const char SIG_LOAD_DETAIL[] = "load,detail";
+static const char SIG_LOADED_DETAIL[] = "loaded,detail";
+static const char SIG_ZOOM_START[] = "zoom,start";
+static const char SIG_ZOOM_STOP[] = "zoom,stop";
+static const char SIG_ZOOM_CHANGE[] = "zoom,change";
+static const char SIG_SCROLL[] = "scroll";
+static const char SIG_SCROLL_ANIM_START[] = "scroll,anim,start";
+static const char SIG_SCROLL_ANIM_STOP[] = "scroll,anim,stop";
+static const char SIG_SCROLL_DRAG_START[] = "scroll,drag,start";
+static const char SIG_SCROLL_DRAG_STOP[] = "scroll,drag,stop";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CLICKED, ""},
+ {SIG_PRESS, ""},
+ {SIG_LONGPRESSED, ""},
+ {SIG_CLICKED_DOUBLE, ""},
+ {SIG_LOAD, ""},
+ {SIG_LOADED, ""},
+ {SIG_LOAD_DETAIL, ""},
+ {SIG_LOADED_DETAIL, ""},
+ {SIG_ZOOM_START, ""},
+ {SIG_ZOOM_STOP, ""},
+ {SIG_ZOOM_CHANGE, ""},
+ {SIG_SCROLL, ""},
+ {SIG_SCROLL_ANIM_START, ""},
+ {SIG_SCROLL_ANIM_STOP, ""},
+ {SIG_SCROLL_DRAG_START, ""},
+ {SIG_SCROLL_DRAG_STOP, ""},
+ {NULL, NULL}
+};
+
+
static int
nearest_pow2(int num)
{
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call(obj, "loaded,detail", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOAD_DETAIL, NULL);
}
}
}
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(git->wd->scr),
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call(git->wd->obj, "loaded,detail", NULL);
+ evas_object_smart_callback_call(git->wd->obj, SIG_LOADED_DETAIL, NULL);
}
}
}
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,start", "elm");
- evas_object_smart_callback_call(obj, "load,detail", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOAD_DETAIL, NULL);
}
}
else if ((g->grid[tn].want) && (!visible))
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call(obj, "loaded,detail", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOADED_DETAIL, NULL);
}
g->grid[tn].want = 0;
evas_object_hide(g->grid[tn].img);
}
if (wd->calc_job) ecore_job_del(wd->calc_job);
wd->calc_job = ecore_job_add(_calc_job, wd);
- evas_object_smart_callback_call(data, "loaded", NULL);
+ evas_object_smart_callback_call(data, SIG_LOADED, NULL);
wd->preload_num--;
if (!wd->preload_num)
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call(obj, "loaded,detail", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOADED_DETAIL, NULL);
}
}
wd->nosmooth--;
if (!wd->nosmooth) _smooth_update(data);
wd->zoom_animator = NULL;
- evas_object_smart_callback_call(obj, "zoom,stop", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
return go;
}
if (!wd) return ECORE_CALLBACK_CANCEL;
wd->long_timer = NULL;
wd->longpressed = EINA_TRUE;
- evas_object_smart_callback_call(data, "longpressed", NULL);
+ evas_object_smart_callback_call(data, SIG_LONGPRESSED, NULL);
return ECORE_CALLBACK_CANCEL;
}
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) wd->on_hold = EINA_TRUE;
else wd->on_hold = EINA_FALSE;
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- evas_object_smart_callback_call(data, "clicked,double", NULL);
+ evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL);
else
- evas_object_smart_callback_call(data, "press", NULL);
+ evas_object_smart_callback_call(data, SIG_PRESS, NULL);
wd->longpressed = EINA_FALSE;
if (wd->long_timer) ecore_timer_del(wd->long_timer);
wd->long_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, data);
wd->long_timer = NULL;
}
if (!wd->on_hold)
- evas_object_smart_callback_call(data, "clicked", NULL);
+ evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
wd->on_hold = EINA_FALSE;
}
static void
_scr_anim_start(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- evas_object_smart_callback_call(data, "scroll,anim,start", NULL);
+ evas_object_smart_callback_call(data, SIG_SCROLL_ANIM_START, NULL);
}
static void
_scr_anim_stop(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- evas_object_smart_callback_call(data, "scroll,anim,stop", NULL);
+ evas_object_smart_callback_call(data, SIG_SCROLL_ANIM_STOP, NULL);
}
static void
_scr_drag_start(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- evas_object_smart_callback_call(data, "scroll,drag,start", NULL);
+ evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_START, NULL);
}
static void
_scr_drag_stop(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- evas_object_smart_callback_call(data, "scroll,drag,stop", NULL);
+ evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_STOP, NULL);
}
static void
_scr_scroll(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- evas_object_smart_callback_call(data, "scroll", NULL);
+ evas_object_smart_callback_call(data, SIG_SCROLL, NULL);
}
static Eina_Bool
&minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_sizing_eval(obj);
return obj;
}
wd->main_load_pending = 1;
if (wd->calc_job) ecore_job_del(wd->calc_job);
wd->calc_job = ecore_job_add(_calc_job, wd);
- evas_object_smart_callback_call(obj, "load", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOAD, NULL);
wd->preload_num++;
if (wd->preload_num == 1)
{
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,start", "elm");
- evas_object_smart_callback_call(obj, "load,detail", NULL);
+ evas_object_smart_callback_call(obj, SIG_LOAD_DETAIL, NULL);
}
{
double tz = wd->zoom;
if (!wd->paused)
{
if (started)
- evas_object_smart_callback_call(obj, "zoom,start", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_START, NULL);
if (!an)
- evas_object_smart_callback_call(obj, "zoom,stop", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
if (zoom_changed)
- evas_object_smart_callback_call(obj, "zoom,change", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_CHANGE, NULL);
}
/**
ecore_animator_del(wd->zoom_animator);
wd->zoom_animator = NULL;
zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, "zoom,stop", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
elm_smart_scroller_child_region_show(wd->scr, rx, ry, rw, rh);
}
ecore_animator_del(wd->zoom_animator);
wd->zoom_animator = NULL;
zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, "zoom,stop", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
elm_smart_scroller_region_bring_in(wd->scr, rx, ry, rw, rh);
}
ecore_animator_del(wd->zoom_animator);
wd->zoom_animator = NULL;
zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, "zoom,stop", NULL);
+ evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
}
}
static Elm_Segment_Item* _item_new(Evas_Object *obj, Evas_Object *icon,
const char *label);
+static const char SIG_CHANGED[] = "changed";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CHANGED, ""},
+ {NULL, NULL}
+};
+
static void
_sizing_eval(Evas_Object *obj)
{
edje_object_signal_emit(it->base.view, "elm,state,segment,selected", "elm");
wd->selected_item = it;
- evas_object_smart_callback_call(wd->obj, "changed", (void*) it->seg_index);
+ evas_object_smart_callback_call(wd->obj, SIG_CHANGED, (void*) it->seg_index);
}
static void
_on_move_resize, obj);
evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE,
_on_move_resize, obj);
+
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
return obj;
}
static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src,
Evas_Callback_Type type, void *event_info);
+static const char SIG_CHANGED[] = "changed";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CHANGED, ""},
+ {NULL, NULL}
+};
+
+
+
static Eina_Bool
_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type type, void *event_info)
{
evas_object_smart_callback_add(obj, "sub-object-del", _sub_del, obj);
evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hints, obj);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_sizing_eval(obj);
return obj;
edje_object_signal_emit(wd->slideshow, buf, "slideshow");
wd->previous = wd->current;
wd->current = next;
- evas_object_smart_callback_call(item->base.widget, "changed", wd->current);
+ evas_object_smart_callback_call(item->base.widget, SIG_CHANGED, wd->current);
}
/**
wd->previous = wd->current;
wd->current = next;
- evas_object_smart_callback_call(obj, "changed", wd->current);
+ evas_object_smart_callback_call(obj, SIG_CHANGED, wd->current);
}
/**
wd->previous = wd->current;
wd->current = prev;
- evas_object_smart_callback_call(obj, "changed", wd->current);
+ evas_object_smart_callback_call(obj, SIG_CHANGED, wd->current);
}
/**
static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl);
+static const char SIG_CHANGED[] = "changed";
+static const char SIG_DELAY_CHANGED[] = "delay,changed";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CHANGED, ""},
+ {SIG_DELAY_CHANGED, ""},
+ {NULL, NULL}
+};
+
static void
_del_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return ECORE_CALLBACK_CANCEL;
wd->delay = NULL;
- evas_object_smart_callback_call(data, "delay,changed", NULL);
+ evas_object_smart_callback_call(data, SIG_DELAY_CHANGED, NULL);
return ECORE_CALLBACK_CANCEL;
}
if (new_val == wd->val) return EINA_FALSE;
wd->val = new_val;
- evas_object_smart_callback_call(obj, "changed", NULL);
+ evas_object_smart_callback_call(obj, SIG_CHANGED, NULL);
if (wd->delay) ecore_timer_del(wd->delay);
wd->delay = ecore_timer_add(0.2, _delay_change, obj);
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
_apply_entry_value(data);
- evas_object_smart_callback_call(data, "changed", NULL);
+ evas_object_smart_callback_call(data, SIG_CHANGED, NULL);
if (wd->delay) ecore_timer_del(wd->delay);
wd->delay = ecore_timer_add(0.2, _delay_change, data);
}
edje_object_signal_callback_add(wd->spinner, "elm,action,entry,toggle",
"*", _toggle_entry, obj);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_write_label(obj);
_sizing_eval(obj);
static const char *widtype = NULL;
-#define SIG_CLICKED "clicked"
-#define SIG_CLICKED_DOUBLE "clicked,double"
-#define SIG_GENERATE_ERROR "generate,error"
-#define SIG_GENERATE_START "generate,start"
-#define SIG_GENERATE_STOP "generate,stop"
-#define SIG_LOAD_ERROR "load,error"
-#define SIG_PRESS "press"
+static const char SIG_CLICKED[] = "clicked";
+static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
+static const char SIG_GENERATE_ERROR[] = "generate,error";
+static const char SIG_GENERATE_START[] = "generate,start";
+static const char SIG_GENERATE_STOP[] = "generate,stop";
+static const char SIG_LOAD_ERROR[] = "load,error";
+static const char SIG_PRESS[] = "press";
static const Evas_Smart_Cb_Description _signals[] =
{
static void _elm_toolbar_item_icon_obj_set(Evas_Object *obj, Elm_Toolbar_Item *item, Evas_Object *icon_obj, const char *icon_str, double icon_size, const char *signal);
static void _item_label_set(Elm_Toolbar_Item *item, const char *label, const char *signal);
+static const char SIG_CLICKED[] = "clicked";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_CLICKED, ""},
+ {NULL, NULL}
+};
+
+
static Eina_Bool
_item_icon_set(Evas_Object *icon_obj, const char *type, const char *icon)
{
_menu_move_resize(it, NULL, NULL, NULL);
}
if (it->func) it->func((void *)(it->base.data), it->base.widget, it);
- evas_object_smart_callback_call(obj2, "clicked", it);
+ evas_object_smart_callback_call(obj2, SIG_CLICKED, it);
}
static void
evas_object_event_callback_add(wd->bx, EVAS_CALLBACK_RESIZE, _resize, obj);
elm_toolbar_icon_order_lookup_set(obj, ELM_ICON_LOOKUP_THEME_FDO);
+ evas_object_smart_callbacks_descriptions_set(obj, _signals);
+
_sizing_eval(obj);
return obj;
}
static void _elm_win_focus_highlight_anim_end(void *data, Evas_Object *obj, const char *emission, const char *source);
static void _elm_win_focus_highlight_reconfigure(Elm_Win *win);
+static const char SIG_DELETE_REQUEST[] = "delete,request";
+static const char SIG_FOCUS_OUT[] = "focus,in";
+static const char SIG_FOCUS_IN[] = "focus,out";
+static const char SIG_MOVED[] = "moved";
+
+static const Evas_Smart_Cb_Description _signals[] = {
+ {SIG_DELETE_REQUEST, ""},
+ {SIG_FOCUS_OUT, ""},
+ {SIG_FOCUS_IN, ""},
+ {SIG_MOVED, ""},
+ {NULL, NULL}
+};
+
+
+
Eina_List *_elm_win_list = NULL;
int _elm_win_deferred_free = 0;
ecore_evas_geometry_get(ee, &x, &y, NULL, NULL);
win->screen.x = x;
win->screen.y = y;
- evas_object_smart_callback_call(win->win_obj, "moved", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_MOVED, NULL);
}
static void
win = elm_widget_data_get(obj);
if (!win) return;
/*NB: Why two different "focus signals" here ??? */
- evas_object_smart_callback_call(win->win_obj, "focus-in", NULL); // FIXME: remove me
- evas_object_smart_callback_call(win->win_obj, "focus,in", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_FOCUS_IN, NULL); // FIXME: remove me
+ evas_object_smart_callback_call(win->win_obj, SIG_FOCUS_IN, NULL);
win->focus_highlight.cur.visible = EINA_TRUE;
_elm_win_focus_highlight_reconfigure_job_start(win);
if (win->frame_obj)
if (!obj) return;
win = elm_widget_data_get(obj);
if (!win) return;
- evas_object_smart_callback_call(win->win_obj, "focus-out", NULL); // FIXME: remove me
- evas_object_smart_callback_call(win->win_obj, "focus,out", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_FOCUS_OUT, NULL); // FIXME: remove me
+ evas_object_smart_callback_call(win->win_obj, SIG_FOCUS_OUT, NULL);
win->focus_highlight.cur.visible = EINA_FALSE;
_elm_win_focus_highlight_reconfigure_job_start(win);
if (win->frame_obj)
{
win->screen.x = x;
win->screen.y = y;
- evas_object_smart_callback_call(win->win_obj, "moved", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_MOVED, NULL);
}
}
else
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
win->screen.x = x;
win->screen.y = y;
- evas_object_smart_callback_call(win->win_obj, "moved", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_MOVED, NULL);
}
if (win->frame_obj)
{
if (!win) return;
int autodel = win->autodel;
win->autodel_clear = &autodel;
- evas_object_smart_callback_call(win->win_obj, "delete-request", NULL); // FIXME: remove me
- evas_object_smart_callback_call(win->win_obj, "delete,request", NULL);
+ evas_object_smart_callback_call(win->win_obj, SIG_DELETE_REQUEST, NULL); // FIXME: remove me.
+ evas_object_smart_callback_call(win->win_obj, SIG_DELETE_REQUEST, NULL);
// FIXME: if above callback deletes - then the below will be invalid
if (autodel) evas_object_del(win->win_obj);
else win->autodel_clear = NULL;
EINA_TRUE);
printf("Key F12 exclusive for dot tree generation. (%d)\n", ret);
#endif
+
+ evas_object_smart_callbacks_descriptions_set(win->win_obj, _signals);
+
return win->win_obj;
}