diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-11-04 23:14:44 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-11-04 23:14:44 +0000 |
commit | 6e5da14294aeba6e961fa06e9157a398d90fa1bf (patch) | |
tree | 3a69071f76b2042201af706dddd6c0b520fa6b41 | |
parent | 427b5d187c8ca5f099b5d4f84664ccc6a560a919 (diff) | |
download | gtk+-6e5da14294aeba6e961fa06e9157a398d90fa1bf.tar.gz |
cell text: Handle new pango enum values
The PangoUnderline enum grew some new values.
-rw-r--r-- | gtk/gtkcellrenderertext.c | 10 |
1 files changed, 10 insertions, 0 deletions
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: |