diff --git a/include/wx/gtk/dnd.h b/include/wx/gtk/dnd.h index 380d5c1d6a..e6e45f03a8 100644 --- a/include/wx/gtk/dnd.h +++ b/include/wx/gtk/dnd.h @@ -77,7 +77,7 @@ class wxDropSource: public wxDropSourceBase { public: /* constructor. set data later with SetData() */ - wxDropSource( wxWindow *win, + wxDropSource( wxWindow *win = (wxWindow *)NULL, const wxIcon &go = wxNullIcon ); /* constructor for setting one data object */ diff --git a/include/wx/gtk1/dnd.h b/include/wx/gtk1/dnd.h index 380d5c1d6a..e6e45f03a8 100644 --- a/include/wx/gtk1/dnd.h +++ b/include/wx/gtk1/dnd.h @@ -77,7 +77,7 @@ class wxDropSource: public wxDropSourceBase { public: /* constructor. set data later with SetData() */ - wxDropSource( wxWindow *win, + wxDropSource( wxWindow *win = (wxWindow *)NULL, const wxIcon &go = wxNullIcon ); /* constructor for setting one data object */