From ddb19489c0abc1a450254f34fe487a938dcb0eda Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 3 Jan 2013 05:09:20 +0000 Subject: [PATCH] remove ancient SetModal(), it was deprecated long ago and is not present in wxMSW or wxOSX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/dialog.h | 1 - interface/wx/dialog.h | 13 ------------- src/gtk/dialog.cpp | 5 ----- 3 files changed, 19 deletions(-) diff --git a/include/wx/gtk/dialog.h b/include/wx/gtk/dialog.h index 8f2b3284ed..120611ac98 100644 --- a/include/wx/gtk/dialog.h +++ b/include/wx/gtk/dialog.h @@ -39,7 +39,6 @@ public: virtual int ShowModal(); virtual void EndModal( int retCode ); virtual bool IsModal() const; - void SetModal( bool modal ); // implementation // -------------- diff --git a/interface/wx/dialog.h b/interface/wx/dialog.h index bb473f43ba..3407302fcd 100644 --- a/interface/wx/dialog.h +++ b/interface/wx/dialog.h @@ -554,19 +554,6 @@ public: */ static wxDialogLayoutAdapter* SetLayoutAdapter(wxDialogLayoutAdapter* adapter); - /** - @deprecated This function doesn't work for all ports, just use - ShowModal() to show a modal dialog instead. - - Allows the programmer to specify whether the dialog box is modal - (Show() blocks control until the dialog is hidden) or modeless (control - returns immediately). - - @param flag - If @true, the dialog will be modal, otherwise it will be modeless. - */ - void SetModal(bool flag); - /** Sets the return code for this window. diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 33a4d6b53f..c7ae206ec3 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -95,11 +95,6 @@ bool wxDialog::IsModal() const return m_modalShowing; } -void wxDialog::SetModal( bool WXUNUSED(flag) ) -{ - wxFAIL_MSG( wxT("wxDialog:SetModal obsolete now") ); -} - // Workaround for Ubuntu overlay scrollbar, which adds our GtkWindow to a // private window group in a GtkScrollbar realize handler. This breaks the grab // done by gtk_window_set_modal(), and allows menus and toolbars in the parent