-
- elm_factory_content_set(obj, bx);
- evas_object_show(bx);
-}
-
-static void
-fac_realize3(void *data, Evas_Object *obj, void *event_info __UNUSED__)
-{
- Evas_Object *win = data;
- Evas_Object *bx, *fc;
- int i;
-
- printf("ADD for factory 3 %p [%i]\n", obj, (BLOK * (int)evas_object_data_get(obj, "num")));
- bx = elm_box_add(win);
- elm_box_homogeneous_set(bx, EINA_TRUE);
-
- for (i = 0; i < BLOK; i++)
- {
- fc = elm_factory_add(win);
- // initial height per factory of 1000
- // scrollbar will be wrong until enough
- // children have been realized and the
- // real size is known
- evas_object_data_set(fc, "num", (void *)(i + (BLOK * (int)evas_object_data_get(obj, "num"))));
- evas_object_size_hint_min_set(fc, 0, 1000);
- evas_object_size_hint_weight_set(fc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(fc, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_smart_callback_add(fc, "realize", fac_realize_end, win);
- evas_object_smart_callback_add(fc, "unrealize", fac_unrealize, win);
- elm_box_pack_end(bx, fc);
- evas_object_show(fc);
- }