aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_smart.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2007-08-04 13:12:43 +0000
committerCarsten Haitzler <raster@rasterman.com>2007-08-04 13:12:43 +0000
commit4b435be1ed7f470e763ed14abb8ae0973a6a9f6b (patch)
tree83d3f6d832e215a26ad80367b38a379bdc67cc02 /legacy/evas/src/lib/canvas/evas_smart.c
parentgrad fixes from jose (diff)
downloadefl-4b435be1ed7f470e763ed14abb8ae0973a6a9f6b.tar.gz
move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff. SVN revision: 31161
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_smart.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_smart.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_smart.c b/legacy/evas/src/lib/canvas/evas_smart.c
index 2ecc0134cf..c2320f3135 100644
--- a/legacy/evas/src/lib/canvas/evas_smart.c
+++ b/legacy/evas/src/lib/canvas/evas_smart.c
@@ -59,6 +59,9 @@ evas_smart_new(const char *name,
{
Evas_Smart *s;
+ printf("----- WARNING. evas_smart_new() will be deprecated and removed soon\n",
+ "----- Please use evas_smart_class_new() instead\n");
+
if (!name) return NULL;
s = evas_mem_calloc(sizeof(Evas_Smart));
@@ -117,7 +120,7 @@ evas_smart_free(Evas_Smart *s)
* @return an Evas_Smart
*/
EAPI Evas_Smart *
-evas_smart_class_new(Evas_Smart_Class *sc)
+evas_smart_class_new(const Evas_Smart_Class *sc)
{
Evas_Smart *s;
@@ -142,7 +145,7 @@ evas_smart_class_new(Evas_Smart_Class *sc)
* @param s the Evas_Smart
* @return the Evas_Smart_Class
*/
-EAPI Evas_Smart_Class *
+EAPI const Evas_Smart_Class *
evas_smart_class_get(Evas_Smart *s)
{
MAGIC_CHECK(s, Evas_Smart, MAGIC_SMART);