summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-10-16 09:44:40 +0200
committerTimm Bäder <mail@baedert.org>2020-10-22 17:46:34 +0200
commit6dcdb4a601410e10b1e404175a6256728ac4b682 (patch)
tree2744318569e0f5f1e749c426ee2951eccf2bcde5
parent41ef1d87efa2de0c0ebd6116eb5cab5db00f47e9 (diff)
downloadgtk+-6dcdb4a601410e10b1e404175a6256728ac4b682.tar.gz
atspitextbuffer: Explicitly cast between pango and gtk enums
-rw-r--r--gtk/a11y/gtkatspitextbuffer.c4
1 files 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;