summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-10-15 18:39:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-05-25 00:40:58 +0000
commit3e754defc364a89b2136894399b3463976840156 (patch)
treec1e6a79107b1fc2b078a648d719f152489d98ed7 /tools
parentbe0357359d975aa93d3683c5c5f4ea382b33ca5b (diff)
downloadpango-3e754defc364a89b2136894399b3463976840156.tar.gz
Replace PangoScript by GUnicodeScript
This commit replaces the PangoScript enum by a typedef to GUnicodeScript, and preserves the old enum values as defines. This depends on adding an enum type for GUnicodeScript in gobject.
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-script-for-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index 04614b15..0df3cd2f 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -49,7 +49,7 @@ static const char *get_script_name (PangoScript script)
static GEnumClass *class = NULL;
GEnumValue *value;
if (!class)
- class = g_type_class_ref (PANGO_TYPE_SCRIPT);
+ class = g_type_class_ref (G_TYPE_UNICODE_SCRIPT);
value = g_enum_get_value (class, script);
g_assert (value);