builder: Expot _gtk_builder_boolean_from_string privately

When specifying accessible properties in ui files, it
is better to accept the same syntax for booleans as
elsewhere, so lets reuse this function.
This commit is contained in:
Matthias Clasen 2020-10-25 12:19:21 -04:00
parent 313ba0280a
commit e050a2661c
2 changed files with 5 additions and 1 deletions

View File

@ -1997,7 +1997,7 @@ gtk_builder_value_from_string (GtkBuilder *builder,
string, value, error);
}
static gboolean
gboolean
_gtk_builder_boolean_from_string (const char *string,
gboolean *value,
GError **error)

View File

@ -242,6 +242,10 @@ gboolean _gtk_builder_flags_from_string (GType type,
const char *string,
guint *value,
GError **error);
gboolean _gtk_builder_boolean_from_string (const char *string,
gboolean *value,
GError **error);
const char * _gtk_builder_parser_translate (const char *domain,
const char *context,
const char *text);