diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-23 12:31:16 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:49 +0100 |
commit | f6cf447cad57b98331c0e4439abd545fbfe5d10e (patch) | |
tree | 491190f13ca8690dab15e8508fd2c289e73c2ba3 /gtk/gtkstyleproperty.c | |
parent | eddd36d1d91f51271cc389b9533cb672c0294bb8 (diff) | |
download | gtk+-f6cf447cad57b98331c0e4439abd545fbfe5d10e.tar.gz |
styleproperty: Assign a unique id to every styleproperty
Diffstat (limited to 'gtk/gtkstyleproperty.c')
-rw-r--r-- | gtk/gtkstyleproperty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index d300fefbca..f27cd730dc 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -52,6 +52,7 @@ static GHashTable *parse_funcs = NULL; static GHashTable *print_funcs = NULL; static GHashTable *properties = NULL; +static guint __n_style_properties = 0; static void register_conversion_function (GType type, @@ -3130,6 +3131,7 @@ _gtk_style_property_register (GParamSpec *pspec, node = g_slice_new0 (GtkStyleProperty); node->flags = flags; + node->id = __n_style_properties++; node->pspec = pspec; node->property_parse_func = property_parse_func; node->pack_func = pack_func; |