[gtk/pango-deprecations: 5/5] gtk: Stop using deprecated pango api



commit a3f1e02b9b13057c5156bff384b4257473e3dc8b
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 31 14:07:08 2019 -0500

    gtk: Stop using deprecated pango api

 gtk/gtkentry.c     | 2 +-
 gtk/gtktextbtree.c | 4 ++--
 gtk/gtktextview.c  | 3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 3380e5d153..b8e957e545 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -6388,7 +6388,7 @@ gtk_entry_create_layout (GtkEntry *entry,
       PangoDirection pango_dir;
 
       if (gtk_entry_get_display_mode (entry) == DISPLAY_NORMAL)
-       pango_dir = pango_find_base_dir (display_text, n_bytes);
+       pango_dir = _gtk_pango_find_base_dir (display_text, n_bytes);
       else
        pango_dir = PANGO_DIRECTION_NEUTRAL;
 
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 2c995aaeff..1931e46a40 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -67,6 +67,7 @@
 #include "gtkdebug.h"
 #include "gtktextmarkprivate.h"
 #include "gtktextsegment.h"
+#include "gtkpango.h"
 
 /*
  * Types
@@ -598,8 +599,7 @@ gtk_text_btree_resolve_bidi (GtkTextIter *start,
             {
              PangoDirection pango_dir;
 
-              pango_dir = pango_find_base_dir (seg->body.chars,
-                                              seg->byte_count);
+              pango_dir = _gtk_pango_find_base_dir (seg->body.chars, seg->byte_count);
              
               if (pango_dir != PANGO_DIRECTION_NEUTRAL)
                 {
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 4c32a7b55c..9aab0af7ba 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -58,6 +58,7 @@
 #include "gtkpixelcacheprivate.h"
 #include "gtkmagnifierprivate.h"
 #include "gtkemojichooser.h"
+#include "gtkpango.h"
 
 #include "a11y/gtktextviewaccessibleprivate.h"
 
@@ -6460,7 +6461,7 @@ iter_line_is_rtl (const GtkTextIter *iter)
   gtk_text_iter_set_line_offset (&start, 0);
   gtk_text_iter_forward_line (&end);
   text = gtk_text_iter_get_visible_text (&start, &end);
-  direction = pango_find_base_dir (text, -1);
+  direction = _gtk_pango_find_base_dir (text, -1);
 
   g_free (text);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]