fix for ANSI mode build (patch 1853001)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1453,7 +1453,7 @@ bool wxDataViewTextRenderer::SetValue( const wxVariant &value )
|
|||||||
|
|
||||||
GValue gvalue = { 0, };
|
GValue gvalue = { 0, };
|
||||||
g_value_init( &gvalue, G_TYPE_STRING );
|
g_value_init( &gvalue, G_TYPE_STRING );
|
||||||
g_value_set_string( &gvalue, wxGTK_CONV( tmp ) );
|
g_value_set_string( &gvalue, wxGTK_CONV_FONT( tmp, GetOwner()->GetOwner()->GetFont() ) );
|
||||||
g_object_set_property( G_OBJECT(m_renderer), "text", &gvalue );
|
g_object_set_property( G_OBJECT(m_renderer), "text", &gvalue );
|
||||||
g_value_unset( &gvalue );
|
g_value_unset( &gvalue );
|
||||||
|
|
||||||
@@ -1465,7 +1465,7 @@ bool wxDataViewTextRenderer::GetValue( wxVariant &value ) const
|
|||||||
GValue gvalue = { 0, };
|
GValue gvalue = { 0, };
|
||||||
g_value_init( &gvalue, G_TYPE_STRING );
|
g_value_init( &gvalue, G_TYPE_STRING );
|
||||||
g_object_get_property( G_OBJECT(m_renderer), "text", &gvalue );
|
g_object_get_property( G_OBJECT(m_renderer), "text", &gvalue );
|
||||||
wxString tmp = wxGTK_CONV_BACK( g_value_get_string( &gvalue ) );
|
wxString tmp = wxGTK_CONV_BACK_FONT( g_value_get_string( &gvalue ), wx_const_cast(wxDataViewTextRenderer*, this)->GetOwner()->GetOwner()->GetFont() );
|
||||||
g_value_unset( &gvalue );
|
g_value_unset( &gvalue );
|
||||||
|
|
||||||
value = tmp;
|
value = tmp;
|
||||||
@@ -1732,7 +1732,7 @@ void wxDataViewCustomRenderer::RenderText( const wxString &text, int xoffset, wx
|
|||||||
|
|
||||||
GValue gvalue = { 0, };
|
GValue gvalue = { 0, };
|
||||||
g_value_init( &gvalue, G_TYPE_STRING );
|
g_value_init( &gvalue, G_TYPE_STRING );
|
||||||
g_value_set_string( &gvalue, wxGTK_CONV( text ) );
|
g_value_set_string( &gvalue, wxGTK_CONV_FONT( text, GetOwner()->GetOwner()->GetFont() ) );
|
||||||
g_object_set_property( G_OBJECT(m_text_renderer), "text", &gvalue );
|
g_object_set_property( G_OBJECT(m_text_renderer), "text", &gvalue );
|
||||||
g_value_unset( &gvalue );
|
g_value_unset( &gvalue );
|
||||||
|
|
||||||
@@ -1811,7 +1811,7 @@ wxDataViewProgressRenderer::wxDataViewProgressRenderer( const wxString &label,
|
|||||||
GValue gvalue = { 0, };
|
GValue gvalue = { 0, };
|
||||||
g_value_init( &gvalue, G_TYPE_STRING );
|
g_value_init( &gvalue, G_TYPE_STRING );
|
||||||
|
|
||||||
g_value_set_string( &gvalue, wxGTK_CONV(m_label) );
|
g_value_set_string( &gvalue, wxGTK_CONV_FONT( m_label, GetOwner()->GetOwner()->GetFont() ) );
|
||||||
g_object_set_property( G_OBJECT(m_renderer), "text", &gvalue );
|
g_object_set_property( G_OBJECT(m_renderer), "text", &gvalue );
|
||||||
g_value_unset( &gvalue );
|
g_value_unset( &gvalue );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user