X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..4227afa4f748870bbfce75047db465f024e0ac1d:/src/gtk/tglbtn.cpp diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index e5baaa3835..d6f4d5881f 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -75,8 +75,7 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, m_parent->DoAddChild(this); PostCreation(); - - SetFont(parent->GetFont()); + InheritAttributes(); wxSize size_best(DoGetBestSize()); wxSize new_size(size); @@ -87,9 +86,6 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, if ((new_size.x != size.x) || (new_size.y != size.y)) SetSize(new_size.x, new_size.y); - SetBackgroundColour(parent->GetBackgroundColour()); - SetForegroundColour(parent->GetForegroundColour()); - Show(TRUE); return TRUE;