X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34b5e560a9f6376c0da05e8b3b2f1d0870ff8639..4d073429a06c885db6440b79d754d8316d847223:/src/gtk/choice.cpp?ds=inline diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index 6d72df1233..f437527d6c 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -111,14 +111,10 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, m_parent->DoAddChild( this ); PostCreation(); - - SetFont( parent->GetFont() ); + InheritAttributes(); SetBestSize(size); - SetBackgroundColour( parent->GetBackgroundColour() ); - SetForegroundColour( parent->GetForegroundColour() ); - Show( TRUE ); return TRUE; @@ -346,7 +342,7 @@ int wxChoice::GetSelection() const #endif } -void wxChoice::SetString( int WXUNUSED(n), const wxString& WXUNUSED(string) ) +void wxChoice::SetString( int n, const wxString& str ) { wxCHECK_RET( m_widget != NULL, wxT("invalid choice") );