diff options
author | Johan Dahlin <johan@gnome.org> | 2008-03-07 20:03:35 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-03-07 20:03:35 +0000 |
commit | 424cc287f15a271c1068d2d892de07a080d57701 (patch) | |
tree | f34b3bd814a05171746ab3c0c709c653ddc6e2ee /gtk/gtkbuilderprivate.h | |
parent | f55db27521932ad1a139308c11287d38f5c61e47 (diff) | |
download | gtk+-424cc287f15a271c1068d2d892de07a080d57701.tar.gz |
- Treat enums like enums and not values - Avoid invalid free, in case of
2008-03-07 Johan Dahlin <johan@gnome.org>
* gtk/gtkbuilder.c:
* gtk/gtkbuilderparser.c:
* gtk/gtkbuilderprivate.h:
* gtk/gtkiconfactory.c:
* tests/buildertest.c:
- Treat enums like enums and not values
- Avoid invalid free, in case of more than two sources
- Add better error messages
- Add much improved tests
(#520979, Christian Persch)
svn path=/trunk/; revision=19732
Diffstat (limited to 'gtk/gtkbuilderprivate.h')
-rw-r--r-- | gtk/gtkbuilderprivate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkbuilderprivate.h b/gtk/gtkbuilderprivate.h index 96f8fd4568..07d20e6d0d 100644 --- a/gtk/gtkbuilderprivate.h +++ b/gtk/gtkbuilderprivate.h @@ -118,6 +118,10 @@ void _free_signal_info (SignalInfo *info, gboolean _gtk_builder_boolean_from_string (const gchar *string, gboolean *value, GError **error); +gboolean _gtk_builder_enum_from_string (GType type, + const gchar *string, + gint *enum_value, + GError **error); gboolean _gtk_builder_flags_from_string (GType type, const char *string, guint *value, |