]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/tglbtn.cpp
byte length for interim UniChar String corrected
[wxWidgets.git] / src / gtk / tglbtn.cpp
index e5baaa38353870fb240cb55f1d7ea4f7488bb0eb..d6f4d5881f7c6d62c47c16231e0b73e1f7168b7c 100644 (file)
@@ -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;