]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/preferencescmn.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / common / preferencescmn.cpp
index 899dc36d2d178315e32370c8cd8b80efd341695a..964949433296be149055c6fb83361e3a1c7ac49e 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxPreferencesEditor implementation common to all platforms.
 // Author:      Vaclav Slavik
 // Created:     2013-02-19
-// RCS-ID:      $Id$
 // Copyright:   (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -23,6 +22,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_PREFERENCES_EDITOR
+
 #include "wx/private/preferences.h"
 #include "wx/intl.h"
 
@@ -42,8 +43,8 @@ wxString wxStockPreferencesPage::GetName() const
     return wxString(); // silence compiler warning
 }
 
-wxPreferencesEditor::wxPreferencesEditor()
-    : m_impl(wxPreferencesEditorImpl::Create())
+wxPreferencesEditor::wxPreferencesEditor(const wxString& title)
+    : m_impl(wxPreferencesEditorImpl::Create(title))
 {
 }
 
@@ -67,3 +68,5 @@ void wxPreferencesEditor::Dismiss()
 {
     m_impl->Dismiss();
 }
+
+#endif // wxUSE_PREFERENCES_EDITOR