From 424cc287f15a271c1068d2d892de07a080d57701 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 7 Mar 2008 20:03:35 +0000 Subject: - Treat enums like enums and not values - Avoid invalid free, in case of 2008-03-07 Johan Dahlin * 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 --- gtk/gtkbuilderprivate.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk/gtkbuilderprivate.h') 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, -- cgit v1.2.1