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,
|
|
||||||
g_param_spec_boolean ("filename-set",
|
|
||||||
"Filename Set",
|
"Filename Set",
|
||||||
"Whether the :filename property is set",
|
"Whether the :filename property is set",
|
||||||
FALSE,
|
FALSE,
|
||||||
CLUTTER_PARAM_READABLE));
|
CLUTTER_PARAM_READABLE);
|
||||||
|
g_object_class_install_property (gobject_class, PROP_FILENAME_SET, pspec);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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,
|
|
||||||
g_param_spec_string ("filename",
|
|
||||||
"Filename",
|
"Filename",
|
||||||
"The path of the currently parsed file",
|
"The path of the currently parsed file",
|
||||||
NULL,
|
NULL,
|
||||||
CLUTTER_PARAM_READABLE));
|
CLUTTER_PARAM_READABLE);
|
||||||
|
g_object_class_install_property (gobject_class, PROP_FILENAME, pspec);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user