From 99370d1e0c9f3de42cedb578cc24eda0e3354457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 13 Nov 2007 14:06:19 +0000 Subject: [PATCH] * clutter/Makefile.am: * clutter/clutter.h: include clutter-deprecated.h * clutter/clutter-deprecated.h: added file containing macros that provides more meaningful errors when compiling clutter using code that uses deprecated functions. --- ChangeLog | 8 ++++++++ clutter/Makefile.am | 1 + clutter/clutter-deprecated.h | 19 +++++++++++++++++++ clutter/clutter.h | 1 + 4 files changed, 29 insertions(+) create mode 100644 clutter/clutter-deprecated.h diff --git a/ChangeLog b/ChangeLog index d04a4e06f..b62e1bffd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-11-13 Øyvind Kolås + + * clutter/Makefile.am: + * clutter/clutter.h: include clutter-deprecated.h + * clutter/clutter-deprecated.h: added file containing macros that + provides more meaningful errors when compiling clutter using code that + uses deprecated functions. + 2007-11-13 Øyvind Kolås Renamed all properties of behaviours (and related diff --git a/clutter/Makefile.am b/clutter/Makefile.am index 81f3fa544..d84a2e7b0 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -54,6 +54,7 @@ source_h = \ $(srcdir)/clutter-clone-texture.h \ $(srcdir)/clutter-color.h \ $(srcdir)/clutter-container.h \ + $(srcdir)/clutter-deprecated.h \ $(srcdir)/clutter-effect.h \ $(srcdir)/clutter-entry.h \ $(srcdir)/clutter-event.h \ diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h new file mode 100644 index 000000000..3ce7b7597 --- /dev/null +++ b/clutter/clutter-deprecated.h @@ -0,0 +1,19 @@ +#ifndef _CLUTTER_DEPRECATED_H +#define _CLUTTER_DEPRECATED_H + +/* This header contains defines that makes the compiler provide useful + * direction for resolving compile problems when code is using old APIs + * When using a function name that no longer applies the compiler will + * tell the developer the name of the new function call. + * + * Functions that are simply renamed should give errors containing + * _REPLACED_BY_ whilst functions that are deprecated by new functions with + * new * functionality should giver errors containing _DEPRECATED_BY_. + */ + +#define clutter_behaviour_ellipse_set_angle_begin cairo_behaviour_ellipse_set_angle_begin_REPLACED_BY_clutter_behaviour_set_angle_start +#define clutter_behaviour_ellipse_set_angle_beginx cairo_behaviour_ellipse_set_angle_beginx_REPLACED_BY_clutter_behaviour_set_angle_startx +#define clutter_behaviour_ellipse_get_angle_begin cairo_behaviour_ellipse_get_angle_begin_REPLACED_BY_clutter_behaviour_get_angle_start +#define clutter_behaviour_ellipse_get_angle_beginx cairo_behaviour_ellipse_get_angle_beginx_REPLACED_BY_clutter_behaviour_get_angle_startx + +#endif /* CLUTTER_DEPRECATED_H */ diff --git a/clutter/clutter.h b/clutter/clutter.h index 163cf8559..89dafb475 100644 --- a/clutter/clutter.h +++ b/clutter/clutter.h @@ -41,6 +41,7 @@ #include "clutter-behaviour-scale.h" #include "clutter-box.h" #include "clutter-clone-texture.h" +#include "clutter-deprecated.h" #include "clutter-effect.h" #include "clutter-entry.h" #include "clutter-event.h"