[gtk] cell text: Handle new pango enum values



commit 6e5da14294aeba6e961fa06e9157a398d90fa1bf
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 4 23:14:44 2019 +0000

    cell text: Handle new pango enum values
    
    The PangoUnderline enum grew some new values.

 gtk/gtkcellrenderertext.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 588a7cf91a..f38a1c2bf3 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -1521,10 +1521,20 @@ get_layout (GtkCellRendererText *celltext,
           uline = PANGO_UNDERLINE_SINGLE;
           break;
 
+#if PANGO_VERSION_CHECK(1,45,0)
         case PANGO_UNDERLINE_SINGLE:
           uline = PANGO_UNDERLINE_DOUBLE;
           break;
 
+        case PANGO_UNDERLINE_SINGLE_LINE:
+          uline = PANGO_UNDERLINE_DOUBLE_LINE;
+          break;
+
+        case PANGO_UNDERLINE_DOUBLE_LINE:
+        case PANGO_UNDERLINE_ERROR_LINE:
+          break;
+#endif
+
         case PANGO_UNDERLINE_DOUBLE:
         case PANGO_UNDERLINE_LOW:
         case PANGO_UNDERLINE_ERROR:


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