Deprecate the GParamSpec for CoglFixed

The fixed-point API is not used anywhere, and it's pretty much useless
to have a fixed-point type for properties.
This commit is contained in:
Emmanuele Bassi 2011-10-04 10:32:27 +01:00
parent 839b939d36
commit 938fcc60f0
2 changed files with 15 additions and 1 deletions

View File

@ -44,6 +44,8 @@
* Sets @value to @fixed_. * Sets @value to @fixed_.
* *
* Since: 0.8 * Since: 0.8
*
* Deprecated: 1.10: Use g_value_set_int() instead.
*/ */
void void
clutter_value_set_fixed (GValue *value, clutter_value_set_fixed (GValue *value,
@ -63,6 +65,8 @@ clutter_value_set_fixed (GValue *value,
* Return value: the value inside the passed #GValue * Return value: the value inside the passed #GValue
* *
* Since: 0.8 * Since: 0.8
*
* Deprecated: 1.10: Use g_value_get_int() instead.
*/ */
CoglFixed CoglFixed
clutter_value_get_fixed (const GValue *value) clutter_value_get_fixed (const GValue *value)
@ -164,9 +168,11 @@ clutter_param_fixed_get_type (void)
* *
* Creates a #GParamSpec for properties using #CoglFixed values * Creates a #GParamSpec for properties using #CoglFixed values
* *
* Return value: the newly created #GParamSpec * Return value: (transfer full): the newly created #GParamSpec
* *
* Since: 0.8 * Since: 0.8
*
* Deprecated: 1.10: Use #GParamSpecInt instead.
*/ */
GParamSpec * GParamSpec *
clutter_param_spec_fixed (const gchar *name, clutter_param_spec_fixed (const gchar *name,

View File

@ -34,6 +34,8 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
#define CLUTTER_TYPE_PARAM_FIXED (clutter_param_fixed_get_type ()) #define CLUTTER_TYPE_PARAM_FIXED (clutter_param_fixed_get_type ())
#define CLUTTER_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_FIXED, ClutterParamSpecFixed)) #define CLUTTER_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_FIXED, ClutterParamSpecFixed))
#define CLUTTER_IS_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_FIXED)) #define CLUTTER_IS_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_FIXED))
@ -45,6 +47,8 @@ G_BEGIN_DECLS
* Evaluates to %TRUE if @x holds a #CoglFixed . * Evaluates to %TRUE if @x holds a #CoglFixed .
* *
* Since: 0.8 * Since: 0.8
*
* Deprecated: 1.10: Use %G_VALUE_HOLDS_INT instead
*/ */
#define CLUTTER_VALUE_HOLDS_FIXED(x) (G_VALUE_HOLDS ((x), COGL_TYPE_FIXED)) #define CLUTTER_VALUE_HOLDS_FIXED(x) (G_VALUE_HOLDS ((x), COGL_TYPE_FIXED))
@ -59,6 +63,8 @@ typedef struct _ClutterParamSpecFixed ClutterParamSpecFixed;
* #GParamSpec subclass for fixed point based properties * #GParamSpec subclass for fixed point based properties
* *
* Since: 0.8 * Since: 0.8
*
* Deprecated: Use #GParamSpecInt instead
*/ */
struct _ClutterParamSpecFixed struct _ClutterParamSpecFixed
{ {
@ -86,6 +92,8 @@ GParamSpec * clutter_param_spec_fixed (const gchar *name,
GParamFlags flags); GParamFlags flags);
#endif /* DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS
#endif /* __CLUTTER_FIXED_H__ */ #endif /* __CLUTTER_FIXED_H__ */