git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53735
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#ifdef wxUSE_UNICODE
+ const wxCharBuffer buffer(value.utf8_str());
+#else
wxFontEncoding enc = m_defaultStyle.HasFont()
? m_defaultStyle.GetFont().GetEncoding()
: wxFONTENCODING_SYSTEM;
wxFontEncoding enc = m_defaultStyle.HasFont()
? m_defaultStyle.GetFont().GetEncoding()
: wxFONTENCODING_SYSTEM;
wxLogWarning(_("Failed to set text in the text control."));
return;
}
wxLogWarning(_("Failed to set text in the text control."));
return;
}
if ( !(flags & SetValue_SendEvent) )
{
if ( !(flags & SetValue_SendEvent) )
{
+#ifdef wxUSE_UNICODE
+ const wxCharBuffer buffer(text.utf8_str());
+#else
// check if we have a specific style for the current position
wxFontEncoding enc = wxFONTENCODING_SYSTEM;
wxTextAttr style;
// check if we have a specific style for the current position
wxFontEncoding enc = wxFONTENCODING_SYSTEM;
wxTextAttr style;
wxLogWarning(_("Failed to insert text in the control."));
return;
}
wxLogWarning(_("Failed to insert text in the control."));
return;
}
// First remove the selection if there is one
// TODO: Is there an easier GTK specific way to do this?
// First remove the selection if there is one
// TODO: Is there an easier GTK specific way to do this?