Remove view_xxx_listener_add functions.
Instead have to use e_view_event_listener_add.
Change-Id: I65cf675344ff7bff6c248c5c824f091d35fa6360
e_view_show(e_view_rect_view_get(rect->view));
rect->show.notify = _e_alpha_mask_rect_cb_view_client_show;
- e_view_show_listener_add(e_view_client_view_get(view_client), &rect->show);
+ e_view_event_listener_add(e_view_client_view_get(view_client), E_VIEW_SHOW, &rect->show);
rect->hide.notify = _e_alpha_mask_rect_cb_view_client_hide;
- e_view_hide_listener_add(e_view_client_view_get(view_client), &rect->hide);
+ e_view_event_listener_add(e_view_client_view_get(view_client), E_VIEW_HIDE, &rect->hide);
rect->reposition.notify = _e_alpha_mask_rect_cb_view_client_reposition;
- e_view_reposition_listener_add(e_view_client_view_get(view_client), &rect->reposition);
+ e_view_event_listener_add(e_view_client_view_get(view_client), E_VIEW_MOVE, &rect->reposition);
rect->resize.notify = _e_alpha_mask_rect_cb_view_client_resize;
- e_view_client_resize_listener_add(view_client, &rect->resize);
+ e_view_event_listener_add(e_view_client_view_get(view_client), E_VIEW_RESIZE, &rect->resize);
// TODO : view
evas_object_smart_callback_add(ec->frame, "client_resize", _e_alpha_mask_rect_cb_client_resize, rect);
evas_object_repeat_events_set(view->eo, repeat);
}
-E_API void
+EINTERN void
e_view_destroy_listener_add(E_View *view, struct wl_listener *listener)
{
wl_signal_add(&view->events.destroy, listener);
}
E_API void
-e_view_show_listener_add(E_View *view, struct wl_listener *listener)
-{
- wl_signal_add(&view->events.show, listener);
-}
-
-E_API void
-e_view_hide_listener_add(E_View *view, struct wl_listener *listener)
-{
- wl_signal_add(&view->events.hide, listener);
-}
-
-E_API void
-e_view_reposition_listener_add(E_View *view, struct wl_listener *listener)
-{
- wl_signal_add(&view->events.reposition, listener);
-}
-
-E_API void
-e_view_restack_listener_add(E_View *view, struct wl_listener *listener)
-{
- wl_signal_add(&view->events.restack, listener);
-}
-
-E_API void
e_view_name_set(E_View *view, const char *name)
{
if (!view) return;
}
E_API void
-e_view_client_resize_listener_add(E_View_Client *client, struct wl_listener *listener)
-{
- if (client == NULL) return;
-
- wl_signal_add(&client->events.resize, listener);
-}
-
-E_API void
e_view_client_signal_emit(E_View_Client *client, const char *sig, const char *src)
{
if (client == NULL) return;
void e_view_client_show(E_View_Client *client);
void e_view_client_hide(E_View_Client *client);
+void e_view_destroy_listener_add(E_View *view, struct wl_listener *listener);
+
#ifdef E_VIEW_TEST
extern Evas_Object_Event_Cb e_view_event_callback_get(E_View_Event_Type type);
view = e_view_client_view_get(e_client_view_get(ec));
g_conf->part[type].del_listener.notify = _conf_cb_part_del;
- e_view_destroy_listener_add(view, &g_conf->part[type].del_listener);
+ e_view_event_listener_add(view, E_VIEW_DESTROY, &g_conf->part[type].del_listener);
g_conf->part[type].show_listener.notify = _conf_cb_part_show;
e_view_event_listener_add(view, E_VIEW_SHOW, &g_conf->part[type].show_listener);
void e_view_repeat_events_set(E_View *view, bool repeat);
/**
- * Set the wl_listener to be called when view is destroyed.
- */
-void e_view_destroy_listener_add(E_View *view, struct wl_listener *listener);
-
-/**
- * Set the listener function to be called when show event occurs.
-*/
-void e_view_show_listener_add(E_View *view, struct wl_listener *listener);
-
-/**
- * Set the listener function to be called when hide event occurs.
-*/
-void e_view_hide_listener_add(E_View *view, struct wl_listener *listener);
-
-/**
- * Set the listener function to be called when move event occurs.
-*/
-void e_view_reposition_listener_add(E_View *view, struct wl_listener *listener);
-
-/**
- * Set the listener function to be called when restack event occurs.
-*/
-void e_view_restack_listener_add(E_View *view, struct wl_listener *listener);
-
-/**
* Set the name of the given E_View object
*
* @param[in] name The string to set @c view 's name
void e_view_client_frame_wh_adjust(E_View_Client *client, int width, int height, int *aw, int *ah);
void e_view_client_frame_wh_unadjust(E_View_Client *client, int width, int height, int *aw, int *ah);
-void e_view_client_resize_listener_add(E_View_Client *client, struct wl_listener *listener);
-
void e_view_client_signal_emit(E_View_Client *client, const char *sig, const char *src);
void e_view_client_input_area_set(E_View_Client *client, int x, int y, int w, int h);
void e_view_client_input_rect_get(E_View_Client *client, Eina_List **list);