forked from enlightenment/efl
elementary/ctxpopup
The ctxpopup had used elm_ojbect_scroll_freeze_push(), pop() for the scroll-freeze-on,of callback. If user calls elm_object_scroll_freeze_pop() only after elm_ojbect_scroll_freeze_push(), then it will be fine. But sometimes user calls elm_object_scroll_freeze_pop() two times in a row.. Then you can find there is infinite loop in following.. Signed-Off-By: cnook <kimcinoo@gmail.com> SVN revision: 66584
This commit is contained in:
parent
5f99ff1ffe
commit
e70dcfe130
|
@ -148,7 +148,7 @@ _freeze_on(void *data __UNUSED__, Evas_Object *obj,
|
|||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
||||
if ((!wd) || (!wd->scr)) return;
|
||||
elm_object_scroll_freeze_push(wd->scr);
|
||||
elm_smart_scroller_freeze_set(wd->scr, EINA_TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -158,7 +158,7 @@ _freeze_off(void *data __UNUSED__, Evas_Object *obj,
|
|||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
||||
if ((!wd) || (!wd->scr)) return;
|
||||
elm_object_scroll_freeze_pop(wd->scr);
|
||||
elm_smart_scroller_freeze_set(wd->scr, EINA_FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue