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:
parent
7af992974e
commit
74257dfa27
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user