_resize_cb(void *data, Evas *evas, Evas_Object *obj, void *event)\r
{\r
Widget_Data *wd = elm_widget_data_get(data);\r
+ Evas_Coord w, h;\r
if (!wd) return;\r
\r
- evas_object_geometry_get(wd->box, NULL, NULL, &wd->w_box, &wd->h_box); \r
+ evas_object_geometry_get(wd->box, NULL, NULL, &w, &h);\r
+\r
+ if(wd->h_box < h) evas_object_smart_callback_call(data, "expanded", NULL);\r
+ else if(wd->h_box > h) evas_object_smart_callback_call(data, "contracted", NULL);\r
+ else ;\r
+\r
+ wd->w_box = w;\r
+ wd->h_box = h;\r
}\r
\r
static void\r
if (_item == item) {\r
wd->items = eina_list_remove(wd->items, _item);\r
elm_box_unpack(wd->box, _item->button);\r
- //_sizing_eval(obj);\r
_del_button_obj(obj, _item->button);\r
free(_item);\r
if(wd->current == l) \r
\r
evas_object_smart_callback_call(obj, "added", item);\r
\r
- //_sizing_eval(obj);\r
-\r
return item;\r
}\r
\r
\r
_view_init(obj);\r
_event_init(obj);\r
- //_sizing_eval(obj);\r
\r
return obj;\r
}\r