mirror of
https://github.com/brl/mutter.git
synced 2025-05-07 23:54:56 +00:00
* 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.
This commit is contained in:
parent
0dee5eaac3
commit
99370d1e0c
@ -1,3 +1,11 @@
|
|||||||
|
2007-11-13 Øyvind Kolås <pippin@o-hand.com>
|
||||||
|
|
||||||
|
* 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 <pippin@o-hand.com>
|
2007-11-13 Øyvind Kolås <pippin@o-hand.com>
|
||||||
|
|
||||||
Renamed all properties of behaviours (and related
|
Renamed all properties of behaviours (and related
|
||||||
|
@ -54,6 +54,7 @@ source_h = \
|
|||||||
$(srcdir)/clutter-clone-texture.h \
|
$(srcdir)/clutter-clone-texture.h \
|
||||||
$(srcdir)/clutter-color.h \
|
$(srcdir)/clutter-color.h \
|
||||||
$(srcdir)/clutter-container.h \
|
$(srcdir)/clutter-container.h \
|
||||||
|
$(srcdir)/clutter-deprecated.h \
|
||||||
$(srcdir)/clutter-effect.h \
|
$(srcdir)/clutter-effect.h \
|
||||||
$(srcdir)/clutter-entry.h \
|
$(srcdir)/clutter-entry.h \
|
||||||
$(srcdir)/clutter-event.h \
|
$(srcdir)/clutter-event.h \
|
||||||
|
19
clutter/clutter-deprecated.h
Normal file
19
clutter/clutter-deprecated.h
Normal file
@ -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 */
|
@ -41,6 +41,7 @@
|
|||||||
#include "clutter-behaviour-scale.h"
|
#include "clutter-behaviour-scale.h"
|
||||||
#include "clutter-box.h"
|
#include "clutter-box.h"
|
||||||
#include "clutter-clone-texture.h"
|
#include "clutter-clone-texture.h"
|
||||||
|
#include "clutter-deprecated.h"
|
||||||
#include "clutter-effect.h"
|
#include "clutter-effect.h"
|
||||||
#include "clutter-entry.h"
|
#include "clutter-entry.h"
|
||||||
#include "clutter-event.h"
|
#include "clutter-event.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user