Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31481/src/gui

Modified Files:
        wxMFrame.cpp 
Log Message:
removed workaround for an old (circa wx 2.2) bug in wxFrame::Maximize()

Index: wxMFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMFrame.cpp,v
retrieving revision 1.174
retrieving revision 1.175
diff -b -u -2 -r1.174 -r1.175
--- wxMFrame.cpp        5 Jul 2005 12:36:03 -0000       1.174
+++ wxMFrame.cpp        9 Jul 2005 20:43:54 -0000       1.175
@@ -186,8 +186,4 @@
         : MFrameBase(name)
 {
-#ifdef USE_WORKAROUND_FOR_MAXIMIZE
-   m_shouldMaximizeOnShow = FALSE;
-#endif
-
 #ifdef USE_PYTHON
    m_pyOptHandler = new PythonOptionChangeHandler(this);
@@ -198,37 +194,4 @@
 }
 
-#ifdef USE_WORKAROUND_FOR_MAXIMIZE
-
-bool wxMFrame::Show(bool show)
-{
-   if ( show && m_shouldMaximizeOnShow )
-   {
-      // trick it into thinking we're already shown, otherwise it doesn't do
-      // anything
-      bool shown = m_isShown;
-      m_isShown = TRUE;
-      wxFrame::Maximize();
-      m_isShown = shown;
-
-      m_shouldMaximizeOnShow = FALSE;
-   }
-
-   return wxFrame::Show(show);
-}
-
-void wxMFrame::Maximize(bool maximize)
-{
-   if ( maximize && !IsShown() )
-   {
-      m_shouldMaximizeOnShow = TRUE;
-   }
-   else
-   {
-      wxFrame::Maximize(maximize);
-   }
-}
-
-#endif // USE_WORKAROUND_FOR_MAXIMIZE
-
 wxToolBar *
 wxMFrame::CreateToolBar(void)



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to