X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13a7abf97312d2e9427898f3432eb9214f09427f..1f30c17645c56f85178ee780fa330d954e45cea9:/include/wx/gtk/msgdlg.h diff --git a/include/wx/gtk/msgdlg.h b/include/wx/gtk/msgdlg.h index 8d310153e9..7ca2daea90 100644 --- a/include/wx/gtk/msgdlg.h +++ b/include/wx/gtk/msgdlg.h @@ -12,7 +12,7 @@ #ifndef __MSGDLG_H__ #define __MSGDLG_H__ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "msgdlg.h" #endif @@ -33,12 +33,20 @@ public: const wxPoint& pos = wxDefaultPosition); int ShowModal(); + virtual bool Show( bool show = true ) { return false; }; + +protected: + // implement some base class methods to do nothing to avoid asserts and + // GTK warnings, since this is not a real wxDialog. + virtual void DoSetSize(int x, int y, + int width, int height, + int sizeFlags = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int x, int y, int width, int height) {} private: wxString m_caption; wxString m_message; long m_dialogStyle; - wxWindow *m_parent; DECLARE_DYNAMIC_CLASS(wxMessageDialog) };