From c6b77657396238f50119bd71e46a842f7e6ad46c Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 29 Aug 2011 15:35:48 +0000 Subject: [PATCH] elementary/ctxpopup - removed unuseful support. SVN revision: 62952 --- src/lib/elc_ctxpopup.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 12c4076..8d9bad8 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -61,10 +61,6 @@ static void _adjust_pos_x(Evas_Coord_Point *pos, static void _adjust_pos_y(Evas_Coord_Point *pos, Evas_Coord_Point *base_size, Evas_Coord_Rectangle *hover_area); -static void _ctxpopup_changed_size_hints(void *data, - Evas *e, - Evas_Object *obj, - void *event_info); static Elm_Ctxpopup_Direction _calc_base_geometry(Evas_Object *obj, Evas_Coord_Rectangle *rect); static void _update_arrow(Evas_Object *obj, Elm_Ctxpopup_Direction dir); @@ -317,21 +313,6 @@ _adjust_pos_y(Evas_Coord_Point *pos, Evas_Coord_Point *base_size, pos->y = hover_area->y; } -static void -_ctxpopup_changed_size_hints(void *data __UNUSED__, Evas *e __UNUSED__, - Evas_Object *obj, void *event_info __UNUSED__) -{ - Widget_Data *wd; - - wd = elm_widget_data_get(obj); - if (!wd) return; - - wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW; - - if (wd->visible) - _sizing_eval(obj); -} - static Elm_Ctxpopup_Direction _calc_base_geometry(Evas_Object *obj, Evas_Coord_Rectangle *rect) { @@ -1158,8 +1139,6 @@ elm_ctxpopup_add(Evas_Object *parent) NULL); evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE, _ctxpopup_move, NULL); - evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, - _ctxpopup_changed_size_hints, NULL); evas_object_smart_callback_add(obj, "scroll-freeze-on", _freeze_on, obj); evas_object_smart_callback_add(obj, "scroll-freeze-off", _freeze_off, obj); evas_object_smart_callback_add(obj, "scroll-hold-on", _hold_on, obj); -- 2.7.4