Add missing basic constructor
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 11:43:37 +0000 (11:43 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 11:43:37 +0000 (11:43 +0000)
ClutterText should have an empty constructor, mostly for
bindings to use, that just proxies call to g_object_new()
without setting any property.

clutter/clutter-text.c
clutter/clutter-text.h

index 2fe488b..83ab135 100644 (file)
@@ -1408,6 +1408,12 @@ clutter_text_init (ClutterText *self)
 }
 
 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,
                        const ClutterColor *color)
index 9bc2741..491e3a3 100644 (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);