G_OBJECT_TYPE_NAME (_obj), \
(method)); } G_STMT_END
+struct _ClutterLayoutManagerPrivate
+{
+ gpointer dummy;
+};
+
enum
{
LAYOUT_CHANGED,
quark_layout_alpha =
g_quark_from_static_string ("clutter-layout-manager-alpha");
+ g_type_class_add_private (klass, sizeof (ClutterLayoutManagerPrivate));
+
klass->get_preferred_width = layout_manager_real_get_preferred_width;
klass->get_preferred_height = layout_manager_real_get_preferred_height;
klass->allocate = layout_manager_real_allocate;
static void
clutter_layout_manager_init (ClutterLayoutManager *manager)
{
+ manager->priv =
+ G_TYPE_INSTANCE_GET_PRIVATE (manager, CLUTTER_TYPE_LAYOUT_MANAGER,
+ ClutterLayoutManagerPrivate);
}
/**
#define CLUTTER_IS_LAYOUT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_LAYOUT_MANAGER))
#define CLUTTER_LAYOUT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_LAYOUT_MANAGER, ClutterLayoutManagerClass))
+typedef struct _ClutterLayoutManagerPrivate ClutterLayoutManagerPrivate;
typedef struct _ClutterLayoutManagerClass ClutterLayoutManagerClass;
/**
/*< private >*/
GInitiallyUnowned parent_instance;
- /* padding for future expansion */
- gpointer dummy;
+ ClutterLayoutManagerPrivate *priv;
};
/**