[gtk/dotted-lines: 8/9] cellrenderertext: Quiet compiler warnings




commit 3973a14c078571379962e33f06a983a2bbcdca64
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 31 18:37:20 2021 -0400

    cellrenderertext: Quiet compiler warnings
    
    Handle new values of the PangoUnderline enumeration.

 gtk/gtkcellrenderertext.c | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 1fc2efb0b2..b552db5860 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -1527,10 +1527,33 @@ get_layout (GtkCellRendererText *celltext,
           uline = PANGO_UNDERLINE_DOUBLE_LINE;
           break;
 
-        case PANGO_UNDERLINE_DOUBLE_LINE:
-        case PANGO_UNDERLINE_ERROR_LINE:
+#if PANGO_VERSION_CHECK(1,49,0)
+        case PANGO_UNDERLINE_SINGLE_DASHED:
+          uline = PANGO_UNDERLINE_DOUBLE_DASHED;
+          break;
+
+        case PANGO_UNDERLINE_SINGLE_LINE_DASHED:
+          uline = PANGO_UNDERLINE_DOUBLE_LINE_DASHED;
+          break;
+
+        case PANGO_UNDERLINE_SINGLE_DOTTED:
+          uline = PANGO_UNDERLINE_DOUBLE_DOTTED;
           break;
 
+        case PANGO_UNDERLINE_SINGLE_LINE_DOTTED:
+          uline = PANGO_UNDERLINE_DOUBLE_LINE_DOTTED;
+          break;
+
+        case PANGO_UNDERLINE_DOUBLE_DASHED:
+        case PANGO_UNDERLINE_DOUBLE_LINE_DASHED:
+        case PANGO_UNDERLINE_DOUBLE_DOTTED:
+        case PANGO_UNDERLINE_DOUBLE_LINE_DOTTED:
+        case PANGO_UNDERLINE_LOW_DASHED:
+        case PANGO_UNDERLINE_LOW_DOTTED:
+#endif
+
+        case PANGO_UNDERLINE_DOUBLE_LINE:
+        case PANGO_UNDERLINE_ERROR_LINE:
         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]