Oops, forgot to cleanup some commented-out code before last commit.
Setting attributes seems to work okay on both multiline and single line widgets for both wxGTK and wxGTK2, so don't disable it for multiline. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1517,15 +1517,8 @@ bool wxTextCtrl::SetStyle( long start, long end, const wxTextAttr& style )
|
|||||||
|
|
||||||
void wxTextCtrl::ApplyWidgetStyle()
|
void wxTextCtrl::ApplyWidgetStyle()
|
||||||
{
|
{
|
||||||
// if (m_windowStyle & wxTE_MULTILINE)
|
|
||||||
// {
|
|
||||||
// // how ?
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
{
|
|
||||||
SetWidgetStyle();
|
SetWidgetStyle();
|
||||||
gtk_widget_set_style( m_text, m_widgetStyle );
|
gtk_widget_set_style( m_text, m_widgetStyle );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTextCtrl::OnCut(wxCommandEvent& WXUNUSED(event))
|
void wxTextCtrl::OnCut(wxCommandEvent& WXUNUSED(event))
|
||||||
|
@@ -1517,15 +1517,8 @@ bool wxTextCtrl::SetStyle( long start, long end, const wxTextAttr& style )
|
|||||||
|
|
||||||
void wxTextCtrl::ApplyWidgetStyle()
|
void wxTextCtrl::ApplyWidgetStyle()
|
||||||
{
|
{
|
||||||
// if (m_windowStyle & wxTE_MULTILINE)
|
|
||||||
// {
|
|
||||||
// // how ?
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
{
|
|
||||||
SetWidgetStyle();
|
SetWidgetStyle();
|
||||||
gtk_widget_set_style( m_text, m_widgetStyle );
|
gtk_widget_set_style( m_text, m_widgetStyle );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTextCtrl::OnCut(wxCommandEvent& WXUNUSED(event))
|
void wxTextCtrl::OnCut(wxCommandEvent& WXUNUSED(event))
|
||||||
|
Reference in New Issue
Block a user