Dear all.
This patch include two changes
1. at _scroll_item, added to check show_item is null or not.
2. at _calc_job, added to check genlist type
because calc_job is added anytime, but some genlist clearing is can
be done before doing calc_job.
Thanks.
Index: elementary/src/lib/elm_genlist.c
===================================================================
--- elementary/src/lib/elm_genlist.c (리비전 69314)
+++ elementary/src/lib/elm_genlist.c (작업 사본)
@@ -2524,6 +2524,7 @@ _scroll_item(Widget_Data *wd)
Elm_Gen_Item *it = NULL;
Evas_Coord gith = 0;
Evas_Coord ow, oh, dx = 0, dy = 0, dw = 0, dh = 0;
+ if (!wd->show_item) return;
evas_object_geometry_get(wd->pan_smart, NULL, NULL, &ow, &oh);
it = wd->show_item;
@@ -2583,6 +2584,7 @@ _calc_job(void *data)
Eina_Bool minw_change = EINA_FALSE;
Eina_Bool did_must_recalc = EINA_FALSE;
if (!wd) return;
+ ELM_CHECK_WIDTYPE(wd->obj,widtype);
evas_object_geometry_get(wd->pan_smart, NULL, NULL, &ow, &wd->h);
elm_smart_scroller_child_viewport_size_get(wd->scr, &vw, NULL);
@@ -2698,10 +2700,13 @@ _calc_job(void *data)
dy = 0;
break;
}
- if ((pan_w > (wd->show_item->x + wd->show_item->item->block->x)) &&
- (pan_h > (wd->show_item->y + wd->show_item->item->block->y + dy)))
+ if (wd->show_item)
{
- _scroll_item(wd);
+ if ((pan_w > (wd->show_item->x + wd->show_item->item->block->x))
&&
+ (pan_h > (wd->show_item->y + wd->show_item->item->block->y +
dy)))
+ {
+ _scroll_item(wd);
+ }
}
}
wd->calc_job = NULL;
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel