Add calculate callback to Evas_Smart_Class.

Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
devs/princeamd/enlightenment-0.17-elive
Gustavo Sverzut Barbieri 15 years ago
parent eab54fb28a
commit 18966c828b
  1. 1
      src/bin/e_box.c
  2. 1
      src/bin/e_editable.c
  3. 1
      src/bin/e_entry.c
  4. 1
      src/bin/e_flowlayout.c
  5. 1
      src/bin/e_fm.c
  6. 1
      src/bin/e_gadcon.c
  7. 1
      src/bin/e_icon.c
  8. 1
      src/bin/e_ilist.c
  9. 1
      src/bin/e_layout.c
  10. 1
      src/bin/e_livethumb.c
  11. 1
      src/bin/e_pan.c
  12. 1
      src/bin/e_scrollframe.c
  13. 1
      src/bin/e_slidecore.c
  14. 1
      src/bin/e_slider.c
  15. 1
      src/bin/e_slidesel.c
  16. 1
      src/bin/e_spectrum.c
  17. 1
      src/bin/e_table.c
  18. 2
      src/bin/e_tlist.c
  19. 1
      src/bin/e_widget.c

@ -652,6 +652,7 @@ _e_box_smart_init(void)
_e_box_smart_color_set,
_e_box_smart_clip_set,
_e_box_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -87,6 +87,7 @@ e_editable_add(Evas *evas)
_e_editable_color_set,
_e_editable_clip_set,
_e_editable_clip_unset,
NULL,
NULL
};
_e_editable_smart = evas_smart_class_new(&sc);

@ -99,6 +99,7 @@ e_entry_add(Evas *evas)
_e_entry_color_set,
_e_entry_clip_set,
_e_entry_clip_unset,
NULL,
NULL
};
_e_entry_smart = evas_smart_class_new(&sc);

@ -836,6 +836,7 @@ _e_flowlayout_smart_init(void)
_e_flowlayout_smart_color_set,
_e_flowlayout_smart_clip_set,
_e_flowlayout_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -418,6 +418,7 @@ e_fm2_init(void)
_e_fm2_smart_color_set, /* color_set */
_e_fm2_smart_clip_set, /* clip_set */
_e_fm2_smart_clip_unset, /* clip_unset */
NULL,
NULL
};
_e_fm2_smart = evas_smart_class_new(&sc);

@ -3108,6 +3108,7 @@ _e_gadcon_layout_smart_init(void)
_e_gadcon_layout_smart_color_set,
_e_gadcon_layout_smart_clip_set,
_e_gadcon_layout_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -345,6 +345,7 @@ _e_icon_smart_init(void)
_e_icon_smart_color_set,
_e_icon_smart_clip_set,
_e_icon_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -799,6 +799,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -364,6 +364,7 @@ _e_layout_smart_init(void)
_e_layout_smart_color_set,
_e_layout_smart_clip_set,
_e_layout_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -210,6 +210,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -263,6 +263,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -1042,6 +1042,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -410,6 +410,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -542,6 +542,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -366,6 +366,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -167,6 +167,7 @@ _e_spectrum_smart_init(void)
_e_spectrum_smart_color_set,
_e_spectrum_smart_clip_set,
_e_spectrum_smart_clip_unset,
NULL,
NULL
};
_e_spectrum_smart = evas_smart_class_new(&sc);

@ -839,6 +839,7 @@ _e_table_smart_init(void)
_e_table_smart_color_set,
_e_table_smart_clip_set,
_e_table_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

@ -537,7 +537,7 @@ _e_smart_init(void)
EVAS_SMART_CLASS_VERSION,
_e_smart_add, _e_smart_del, _e_smart_move, _e_smart_resize,
_e_smart_show, _e_smart_hide, _e_smart_color_set,
_e_smart_clip_set, _e_smart_clip_unset, NULL
_e_smart_clip_set, _e_smart_clip_unset, NULL, NULL
};
_e_smart = evas_smart_class_new(&sc);
}

@ -577,6 +577,7 @@ _e_smart_init(void)
_e_smart_color_set,
_e_smart_clip_set,
_e_smart_clip_unset,
NULL,
NULL
};
_e_smart = evas_smart_class_new(&sc);

Loading…
Cancel
Save