forked from enlightenment/efl
Don't change no_select state when adding item to Gengrid.
If one wants to create a Gengrid with seletion mode disabled and dynamically add items to it the no select mode would be overwritten. So make Gengrid selectable by default and just change the selection state when user explicitly calls elm_gengrid_no_select_mode_set() function. SVN revision: 53241
This commit is contained in:
parent
3597572c8c
commit
484d79e3c0
|
@ -1331,6 +1331,7 @@ elm_gengrid_add(Evas_Object *parent)
|
|||
wd->self = obj;
|
||||
wd->align_x = 0.5;
|
||||
wd->align_y = 0.5;
|
||||
wd->no_select = EINA_FALSE;
|
||||
|
||||
evas_object_smart_callback_add(obj, "scroll-hold-on", _hold_on, obj);
|
||||
evas_object_smart_callback_add(obj, "scroll-hold-off", _hold_off, obj);
|
||||
|
@ -1489,7 +1490,6 @@ elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic,
|
|||
if (!item) return NULL;
|
||||
|
||||
wd->items = eina_list_append(wd->items, item);
|
||||
wd->no_select = EINA_FALSE;
|
||||
|
||||
if (wd->calc_job) ecore_job_del(wd->calc_job);
|
||||
wd->calc_job = ecore_job_add(_calc_job, wd);
|
||||
|
|
Loading…
Reference in New Issue