+void wxTextCtrl::SetFont( const wxFont &WXUNUSED(font) )
+{
+ wxCHECK_RET( m_text != NULL, "invalid text ctrl" );
+
+ // doesn't work
+}
+
+void wxTextCtrl::SetForegroundColour( const wxColour &WXUNUSED(colour) )
+{
+ wxCHECK_RET( m_text != NULL, "invalid text ctrl" );
+
+ // doesn't work
+}
+
+void wxTextCtrl::SetBackgroundColour( const wxColour &colour )
+{
+ wxCHECK_RET( m_text != NULL, "invalid text ctrl" );
+
+ wxControl::SetBackgroundColour( colour );
+
+ if (!m_backgroundColour.Ok()) return;
+
+ if (m_windowStyle & wxTE_MULTILINE)
+ {
+ GdkWindow *window = GTK_TEXT(m_text)->text_area;
+ m_backgroundColour.CalcPixel( gdk_window_get_colormap( window ) );
+ gdk_window_set_background( window, m_backgroundColour.GetColor() );
+ gdk_window_clear( window );
+ }
+}