#pragma hdrstop
#endif
-#if wxUSE_COLOURDLG && (!defined(__WXGTK20__) || defined(__WXUNIVERSAL__))
+#if wxUSE_COLOURDLG
#ifndef WX_PRECOMP
#include "wx/utils.h"
bool wxGenericColourDialog::Create(wxWindow *parent, wxColourData *data)
{
- if ( !wxDialog::Create(parent, wxID_ANY, _("Choose colour"),
- wxPoint(0,0), wxSize(900, 900)) )
+ if ( !wxDialog::Create(GetParentForModalDialog(parent), wxID_ANY,
+ _("Choose colour"),
+ wxPoint(0, 0), wxSize(900, 900)) )
return false;
if (data)
#endif // wxUSE_SLIDER
-#endif // wxUSE_COLOURDLG && !defined(__WXGTK20__)
+#endif // wxUSE_COLOURDLG