Installs a property for owner_type using pspec as the property description.
owner_type
pspec
This function should be used inside the #MxStylableIface initialization function of a class, for instance:
G_DEFINE_TYPE_WITH_CODE (FooActor, foo_actor, CLUTTER_TYPE_ACTOR, G_IMPLEMENT_INTERFACE (MX_TYPE_STYLABLE, mx_stylable_init)); ... static void mx_stylable_init (MxStylableIface *iface) { static gboolean is_initialized = FALSE;
if (!is_initialized) { ... mx_stylable_iface_install_property (stylable, FOO_TYPE_ACTOR, g_param_spec_int ("x-spacing", "X Spacing", "Horizontal spacing", -1, G_MAXINT, 2, G_PARAM_READWRITE)); ... } }
#GType of the style property owner
a #GParamSpec
Installs a property for
owner_type
usingpspec
as the property description.This function should be used inside the #MxStylableIface initialization function of a class, for instance:
if (!is_initialized) { ... mx_stylable_iface_install_property (stylable, FOO_TYPE_ACTOR, g_param_spec_int ("x-spacing", "X Spacing", "Horizontal spacing", -1, G_MAXINT, 2, G_PARAM_READWRITE)); ... } }