styleproperty: Assign a unique id to every styleproperty
This commit is contained in:
parent
eddd36d1d9
commit
f6cf447cad
@ -52,6 +52,7 @@
|
|||||||
static GHashTable *parse_funcs = NULL;
|
static GHashTable *parse_funcs = NULL;
|
||||||
static GHashTable *print_funcs = NULL;
|
static GHashTable *print_funcs = NULL;
|
||||||
static GHashTable *properties = NULL;
|
static GHashTable *properties = NULL;
|
||||||
|
static guint __n_style_properties = 0;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
register_conversion_function (GType type,
|
register_conversion_function (GType type,
|
||||||
@ -3130,6 +3131,7 @@ _gtk_style_property_register (GParamSpec *pspec,
|
|||||||
|
|
||||||
node = g_slice_new0 (GtkStyleProperty);
|
node = g_slice_new0 (GtkStyleProperty);
|
||||||
node->flags = flags;
|
node->flags = flags;
|
||||||
|
node->id = __n_style_properties++;
|
||||||
node->pspec = pspec;
|
node->pspec = pspec;
|
||||||
node->property_parse_func = property_parse_func;
|
node->property_parse_func = property_parse_func;
|
||||||
node->pack_func = pack_func;
|
node->pack_func = pack_func;
|
||||||
|
@ -52,6 +52,7 @@ struct _GtkStyleProperty
|
|||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GtkStylePropertyFlags flags;
|
GtkStylePropertyFlags flags;
|
||||||
|
guint id;
|
||||||
|
|
||||||
GtkStylePropertyParser property_parse_func;
|
GtkStylePropertyParser property_parse_func;
|
||||||
GtkStyleUnpackFunc unpack_func;
|
GtkStyleUnpackFunc unpack_func;
|
||||||
|
Loading…
Reference in New Issue
Block a user