summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-12 18:13:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-12 18:14:43 -0400
commit0de37310ff335d49d8003dfb4008932142ec2bde (patch)
tree8fc84ee0a98715825e5b7ca37e09551d57cc3aec
parent9681fa2ca8dfeb570471a3828e5b6aee4253025c (diff)
downloadpango-0de37310ff335d49d8003dfb4008932142ec2bde.tar.gz
Use g_unichar_get_script directly
Instead of going through a wrapper.
-rw-r--r--pango/break.c2
-rw-r--r--pango/pango-script.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pango/break.c b/pango/break.c
index 27857c02..1cc735cf 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -743,7 +743,7 @@ pango_default_break (const gchar *text,
PangoScript script;
WordBreakType WB_type;
- script = pango_script_for_unichar (wc);
+ script = g_unichar_get_script (wc);
/* Find the WordBreakType of wc */
WB_type = WB_Other;
diff --git a/pango/pango-script.c b/pango/pango-script.c
index e8924403..43be3fa0 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -266,7 +266,7 @@ pango_script_iter_next (PangoScriptIter *iter)
PangoScript sc;
int pair_index;
- sc = pango_script_for_unichar (ch);
+ sc = g_unichar_get_script (ch);
if (sc != PANGO_SCRIPT_COMMON)
pair_index = -1;
else