[gtk/matthiasc/a11y-buildable: 2/6] builder: Expot _gtk_builder_boolean_from_string privately
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y-buildable: 2/6] builder: Expot _gtk_builder_boolean_from_string privately
- Date: Sun, 25 Oct 2020 17:03:14 +0000 (UTC)
commit e050a2661c8eefa4e90197f6bddc86daf0b50b34
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 25 12:19:21 2020 -0400
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.
gtk/gtkbuilder.c | 2 +-
gtk/gtkbuilderprivate.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 182ccad5f1..b6663126cf 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -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)
diff --git a/gtk/gtkbuilderprivate.h b/gtk/gtkbuilderprivate.h
index 5fe910486b..c6200685c4 100644
--- a/gtk/gtkbuilderprivate.h
+++ b/gtk/gtkbuilderprivate.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]