mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +00:00
2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-color.[ch] (clutter_value_set_color): Constify colors and values where needed.
This commit is contained in:
parent
3abaf6841f
commit
3ced5a9086
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||||
|
|
||||||
|
* clutter/clutter-color.[ch] (clutter_value_set_color): Constify
|
||||||
|
colors and values where needed.
|
||||||
|
|
||||||
2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
|
2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||||
|
|
||||||
Bug 1197 - Missing const for clutter_init_with_args *
|
Bug 1197 - Missing const for clutter_init_with_args *
|
||||||
|
@ -779,8 +779,8 @@ clutter_value_lcopy_color (const GValue *value,
|
|||||||
* Since: 1.0
|
* Since: 1.0
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_value_set_color (GValue *value,
|
clutter_value_set_color (GValue *value,
|
||||||
ClutterColor *color)
|
const ClutterColor *color)
|
||||||
{
|
{
|
||||||
g_return_if_fail (CLUTTER_VALUE_HOLDS_COLOR (value));
|
g_return_if_fail (CLUTTER_VALUE_HOLDS_COLOR (value));
|
||||||
|
|
||||||
@ -797,7 +797,7 @@ clutter_value_set_color (GValue *value,
|
|||||||
*
|
*
|
||||||
* Since: 1.0
|
* Since: 1.0
|
||||||
*/
|
*/
|
||||||
const ClutterColor *
|
G_CONST_RETURN ClutterColor *
|
||||||
clutter_value_get_color (const GValue *value)
|
clutter_value_get_color (const GValue *value)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_VALUE_HOLDS_COLOR (value), NULL);
|
g_return_val_if_fail (CLUTTER_VALUE_HOLDS_COLOR (value), NULL);
|
||||||
|
@ -107,13 +107,9 @@ guint32 clutter_color_to_pixel (const ClutterColor *src);
|
|||||||
void clutter_color_from_pixel (ClutterColor *dest,
|
void clutter_color_from_pixel (ClutterColor *dest,
|
||||||
guint32 pixel);
|
guint32 pixel);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define CLUTTER_TYPE_PARAM_COLOR (clutter_param_color_get_type ())
|
#define CLUTTER_TYPE_PARAM_COLOR (clutter_param_color_get_type ())
|
||||||
#define CLUTTER_PARAM_SPEC_COLOR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_COLOR, ClutterParamSpecColor))
|
#define CLUTTER_PARAM_SPEC_COLOR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_COLOR, ClutterParamSpecColor))
|
||||||
#define CLUTTER_IS_PARAM_SPEC_COLOR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_COLOR))
|
#define CLUTTER_IS_PARAM_SPEC_COLOR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_COLOR))
|
||||||
#define CLUTTER_VALUE_HOLDS_COLOR(x) (G_VALUE_HOLDS ((x), CLUTTER_TYPE_COLOR))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_VALUE_HOLDS_COLOR:
|
* CLUTTER_VALUE_HOLDS_COLOR:
|
||||||
@ -123,12 +119,18 @@ void clutter_color_from_pixel (ClutterColor *dest,
|
|||||||
*
|
*
|
||||||
* Since: 1.0
|
* Since: 1.0
|
||||||
*/
|
*/
|
||||||
|
#define CLUTTER_VALUE_HOLDS_COLOR(x) (G_VALUE_HOLDS ((x), CLUTTER_TYPE_COLOR))
|
||||||
|
|
||||||
typedef struct _ClutterParamSpecColor ClutterParamSpecColor;
|
typedef struct _ClutterParamSpecColor ClutterParamSpecColor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClutterParamSpecColor:
|
* ClutterParamSpecColor:
|
||||||
* @default_value: default color value
|
* @default_value: default color value
|
||||||
|
*
|
||||||
|
* A #GParamSpec subclass for defining properties holding
|
||||||
|
* a #ClutterColor.
|
||||||
|
*
|
||||||
|
* Since: 1.0
|
||||||
*/
|
*/
|
||||||
struct _ClutterParamSpecColor
|
struct _ClutterParamSpecColor
|
||||||
{
|
{
|
||||||
@ -139,17 +141,16 @@ struct _ClutterParamSpecColor
|
|||||||
ClutterColor *default_value;
|
ClutterColor *default_value;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType clutter_param_color_get_type (void) G_GNUC_CONST;
|
void clutter_value_set_color (GValue *value,
|
||||||
|
const ClutterColor *color);
|
||||||
|
G_CONST_RETURN ClutterColor *clutter_value_get_color (const GValue *value);
|
||||||
|
|
||||||
void clutter_value_set_color (GValue *value,
|
GType clutter_param_color_get_type (void) G_GNUC_CONST;
|
||||||
ClutterColor *color);
|
GParamSpec *clutter_param_spec_color (const gchar *name,
|
||||||
const ClutterColor *clutter_value_get_color (const GValue *value);
|
const gchar *nick,
|
||||||
|
const gchar *blurb,
|
||||||
GParamSpec *clutter_param_spec_color (const gchar *name,
|
const ClutterColor *default_value,
|
||||||
const gchar *nick,
|
GParamFlags flags);
|
||||||
const gchar *blurb,
|
|
||||||
const ClutterColor *default_value,
|
|
||||||
GParamFlags flags);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user