[gtk/wip/baedert/for-master: 120/128] atspitextbuffer: Explicitly cast between pango and gtk enums




commit 6dcdb4a601410e10b1e404175a6256728ac4b682
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 16 09:44:40 2020 +0200

    atspitextbuffer: Explicitly cast between pango and gtk enums

 gtk/a11y/gtkatspitextbuffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtkatspitextbuffer.c b/gtk/a11y/gtkatspitextbuffer.c
index 73380997bc..b7a8b22090 100644
--- a/gtk/a11y/gtkatspitextbuffer.c
+++ b/gtk/a11y/gtkatspitextbuffer.c
@@ -75,7 +75,7 @@ gtk_text_view_add_default_attributes (GtkTextView     *view,
   g_variant_builder_add (builder, "{ss}", "direction",
                          gtk_text_direction_to_string (text_attrs->direction));
   g_variant_builder_add (builder, "{ss}", "wrap-mode",
-                         pango_wrap_mode_to_string (text_attrs->wrap_mode));
+                         pango_wrap_mode_to_string ((PangoWrapMode)text_attrs->wrap_mode));
   g_variant_builder_add (builder, "{ss}", "editable",
                          text_attrs->editable ? "true" : "false");
   g_variant_builder_add (builder, "{ss}", "invisible",
@@ -256,7 +256,7 @@ gtk_text_buffer_get_run_attributes (GtkTextBuffer   *buffer,
                     "wrap-mode", &wrap_mode,
                     NULL);
       if (val_set)
-        g_variant_builder_add (builder, "{ss}", "wrap-mode", pango_wrap_mode_to_string (wrap_mode));
+        g_variant_builder_add (builder, "{ss}", "wrap-mode", pango_wrap_mode_to_string 
((PangoWrapMode)wrap_mode));
       temp_tags = temp_tags->next;
     }
   val_set = FALSE;


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