[gtk/pango2] Port Quartz code to pango 2



commit c50701c3cd3cb2074d08ef315a8e4a1a1062a06e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 18 15:34:57 2022 -0700

    Port Quartz code to pango 2

 gtk/gtkimcontextquartz.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkimcontextquartz.c b/gtk/gtkimcontextquartz.c
index 9adf39200b..85ed794952 100644
--- a/gtk/gtkimcontextquartz.c
+++ b/gtk/gtkimcontextquartz.c
@@ -91,9 +91,9 @@ quartz_get_preedit_string (GtkIMContext *context,
 
               if (i >= qc->cursor_index &&
                  i < qc->cursor_index + qc->selected_len)
-                attr = pango_attr_underline_new (PANGO_UNDERLINE_DOUBLE);
+                attr = pango_attr_underline_new (PANGO_LINE_STYLE_DOUBLE);
               else
-                attr = pango_attr_underline_new (PANGO_UNDERLINE_SINGLE);
+                attr = pango_attr_underline_new (PANGO_LINE_STYLE_SOLID);
 
               attr->start_index = s - *str;
               if (!*ch)


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