]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
SN: Disable some features not supported by EMX (#ifndef __EMX__)
[wxWidgets.git] / src / generic / panelg.cpp
index 38d4b13ee3901b7cf37bebf8c3e7f37bf51d607a..e2b2c838e70b070074c8dd8546988694d48bdc1a 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "wx/generic/panelg.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
 
 BEGIN_EVENT_TABLE(wxPanel, wxWindow)
@@ -39,7 +38,6 @@ BEGIN_EVENT_TABLE(wxPanel, wxWindow)
   EVT_SIZE(wxPanel::OnSize)
 END_EVENT_TABLE()
 
-#endif
 
 void wxPanel::Init()
 {
@@ -57,10 +55,8 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
 
     if ( ret )
     {
-#ifndef __WXGTK__
         SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
         SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
-#endif
     }
 
     return ret;
@@ -183,7 +179,8 @@ void wxPanel::OnNavigationKey( wxNavigationKeyEvent& event )
 void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event))
 {
 #if wxUSE_CONSTRAINTS
-    if (GetAutoLayout()) Layout();
+    if (GetAutoLayout())
+        Layout();
 #endif
 }
 
@@ -219,9 +216,9 @@ void wxPanel::OnFocus(wxFocusEvent& event)
     if (m_winLastFocused)
     {
         // It might happen that the window got reparented or no longer 
-       // accepts the focus.
+    // accepts the focus.
         if ((m_winLastFocused->GetParent() == this) &&
-           (m_winLastFocused->AcceptsFocus()))
+        (m_winLastFocused->AcceptsFocus()))
         {
             m_winLastFocused->SetFocus();
             return;