Add missing basic constructor

ClutterText should have an empty constructor, mostly for
bindings to use, that just proxies call to g_object_new()
without setting any property.
This commit is contained in:
Emmanuele Bassi 2008-12-11 11:43:37 +00:00
parent 7af992974e
commit 74257dfa27
2 changed files with 7 additions and 0 deletions

View File

@ -1407,6 +1407,12 @@ clutter_text_init (ClutterText *self)
init_mappings (self); /* FIXME: free */
}
ClutterActor *
clutter_text_new (void)
{
return g_object_new (CLUTTER_TYPE_TEXT, NULL);
}
ClutterActor *
clutter_text_new_full (const gchar *font_name,
const gchar *text,

View File

@ -78,6 +78,7 @@ struct _ClutterTextClass
GType clutter_text_get_type (void) G_GNUC_CONST;
ClutterActor * clutter_text_new (void);
ClutterActor * clutter_text_new_full (const gchar *font_name,
const gchar *text,
const ClutterColor *color);