void configure(Ewl_Widget *w, void *ev_data, void *user_data) { Ewl_IconBox* ib = EWL_ICONBOX(w); if (REALIZED(ib) && VISIBLE(ib)) { ewl_callback_del(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE, configure); ewl_iconbox_inner_pane_calculate(EWL_ICONBOX(w)); /*ewl_iconbox_icon_arrange(ib); */ ewl_callback_append(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE, configure, NULL); /* Handle the background, if any */ if (ib->background) { evas_object_clip_set(ib->background, EWL_WIDGET(ib)->fx_clip_box); evas_object_move(ib->background, CURRENT_X(ib), CURRENT_Y(ib)); evas_object_layer_set(ib->background, -1000); evas_object_image_fill_set(ib->background, 0,0, CURRENT_W(ib), CURRENT_H(ib)); evas_object_resize(ib->background, CURRENT_W(ib), CURRENT_H(ib)); } } }