script: Coding style clean-ups
This commit is contained in:
parent
179a66c922
commit
5c67e8e0c0
@ -381,6 +381,7 @@ static void
|
|||||||
clutter_script_class_init (ClutterScriptClass *klass)
|
clutter_script_class_init (ClutterScriptClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
|
GParamSpec *pspec;
|
||||||
|
|
||||||
g_type_class_add_private (klass, sizeof (ClutterScriptPrivate));
|
g_type_class_add_private (klass, sizeof (ClutterScriptPrivate));
|
||||||
|
|
||||||
@ -392,34 +393,33 @@ clutter_script_class_init (ClutterScriptClass *klass)
|
|||||||
/**
|
/**
|
||||||
* ClutterScript:filename-set:
|
* ClutterScript:filename-set:
|
||||||
*
|
*
|
||||||
* Whether the ClutterScript:filename property is set. If this property
|
* Whether the #ClutterScript:filename property is set. If this property
|
||||||
* is %TRUE then the currently parsed data comes from a file, and the
|
* is %TRUE then the currently parsed data comes from a file, and the
|
||||||
* file name is stored inside the ClutterScript:filename property.
|
* file name is stored inside the #ClutterScript:filename property.
|
||||||
*
|
*
|
||||||
* Since: 0.6
|
* Since: 0.6
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
pspec = g_param_spec_boolean ("filename-set",
|
||||||
PROP_FILENAME_SET,
|
"Filename Set",
|
||||||
g_param_spec_boolean ("filename-set",
|
"Whether the :filename property is set",
|
||||||
"Filename Set",
|
FALSE,
|
||||||
"Whether the :filename property is set",
|
CLUTTER_PARAM_READABLE);
|
||||||
FALSE,
|
g_object_class_install_property (gobject_class, PROP_FILENAME_SET, pspec);
|
||||||
CLUTTER_PARAM_READABLE));
|
|
||||||
/**
|
/**
|
||||||
* ClutterScript:filename:
|
* ClutterScript:filename:
|
||||||
*
|
*
|
||||||
* The path of the currently parsed file. If ClutterScript:filename-set
|
* The path of the currently parsed file. If #ClutterScript:filename-set
|
||||||
* is %FALSE then the value of this property is undefined.
|
* is %FALSE then the value of this property is undefined.
|
||||||
*
|
*
|
||||||
* Since: 0.6
|
* Since: 0.6
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
pspec = g_param_spec_string ("filename",
|
||||||
PROP_FILENAME,
|
"Filename",
|
||||||
g_param_spec_string ("filename",
|
"The path of the currently parsed file",
|
||||||
"Filename",
|
NULL,
|
||||||
"The path of the currently parsed file",
|
CLUTTER_PARAM_READABLE);
|
||||||
NULL,
|
g_object_class_install_property (gobject_class, PROP_FILENAME, pspec);
|
||||||
CLUTTER_PARAM_READABLE));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -548,8 +548,8 @@ clutter_script_load_from_data (ClutterScript *script,
|
|||||||
|
|
||||||
internal_error = NULL;
|
internal_error = NULL;
|
||||||
json_parser_load_from_data (JSON_PARSER (priv->parser),
|
json_parser_load_from_data (JSON_PARSER (priv->parser),
|
||||||
data, length,
|
data, length,
|
||||||
&internal_error);
|
&internal_error);
|
||||||
if (internal_error)
|
if (internal_error)
|
||||||
{
|
{
|
||||||
g_propagate_error (error, internal_error);
|
g_propagate_error (error, internal_error);
|
||||||
|
Loading…
Reference in New Issue
Block a user