From: Vadim Zeitlin Date: Fri, 15 Jun 2001 16:37:14 +0000 (+0000) Subject: applied patch 433352 (fix for wxTextCtrl::SetForegroundColor()) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c7e7d5b1e9085e6afcfac8e914a2cdeb3bc405c applied patch 433352 (fix for wxTextCtrl::SetForegroundColor()) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/textctrl.h b/include/wx/gtk/textctrl.h index 0a529c6a27..727e7741f9 100644 --- a/include/wx/gtk/textctrl.h +++ b/include/wx/gtk/textctrl.h @@ -131,7 +131,6 @@ public: void OnUpdateRedo(wxUpdateUIEvent& event); bool SetFont( const wxFont &font ); - bool SetForegroundColour(const wxColour &colour); bool SetBackgroundColour(const wxColour &colour); GtkWidget* GetConnectWidget(); diff --git a/include/wx/gtk1/textctrl.h b/include/wx/gtk1/textctrl.h index 0a529c6a27..727e7741f9 100644 --- a/include/wx/gtk1/textctrl.h +++ b/include/wx/gtk1/textctrl.h @@ -131,7 +131,6 @@ public: void OnUpdateRedo(wxUpdateUIEvent& event); bool SetFont( const wxFont &font ); - bool SetForegroundColour(const wxColour &colour); bool SetBackgroundColour(const wxColour &colour); GtkWidget* GetConnectWidget(); diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 2ed849a995..9904ed48a2 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1072,14 +1072,6 @@ void wxTextCtrl::UpdateFontIfNeeded() ChangeFontGlobally(); } -bool wxTextCtrl::SetForegroundColour( const wxColour &WXUNUSED(colour) ) -{ - wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") ); - - // doesn't work - return FALSE; -} - bool wxTextCtrl::SetBackgroundColour( const wxColour &colour ) { wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") ); diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 2ed849a995..9904ed48a2 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -1072,14 +1072,6 @@ void wxTextCtrl::UpdateFontIfNeeded() ChangeFontGlobally(); } -bool wxTextCtrl::SetForegroundColour( const wxColour &WXUNUSED(colour) ) -{ - wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") ); - - // doesn't work - return FALSE; -} - bool wxTextCtrl::SetBackgroundColour( const wxColour &colour ) { wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") );