From f4445caba3013eb5891db610d38adaa2b80c5ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Sat, 8 Oct 2016 16:42:53 +0200 Subject: [PATCH] Fix wrong type used for PangoAlignment --- src/gtk/dataview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 9a3c82e39c..41854f603f 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -2358,7 +2358,7 @@ void wxDataViewTextRenderer::SetAlignment( int align ) pangoAlign = PANGO_ALIGN_CENTER; GValue gvalue = G_VALUE_INIT; - g_value_init( &gvalue, gtk_cell_renderer_mode_get_type() ); + g_value_init( &gvalue, pango_alignment_get_type() ); g_value_set_enum( &gvalue, pangoAlign ); g_object_set_property( G_OBJECT(m_renderer), "alignment", &gvalue ); g_value_unset( &gvalue ); @@ -2885,7 +2885,7 @@ void wxDataViewChoiceRenderer::SetAlignment( int align ) pangoAlign = PANGO_ALIGN_CENTER; GValue gvalue = G_VALUE_INIT; - g_value_init( &gvalue, gtk_cell_renderer_mode_get_type() ); + g_value_init( &gvalue, pango_alignment_get_type() ); g_value_set_enum( &gvalue, pangoAlign ); g_object_set_property( G_OBJECT(m_renderer), "alignment", &gvalue ); g_value_unset( &gvalue );