]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed queuedResize code again as GTK+ does this internally already
authorRobert Roebling <robert@roebling.de>
Mon, 26 Jan 2009 20:43:12 +0000 (20:43 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 26 Jan 2009 20:43:12 +0000 (20:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/toplevel.h
src/gtk/toplevel.cpp

index 53c99fdac0443a1c9ab631d440fec70374f52053..1670cff48678f2ff939aa14b8484202564d06817 100644 (file)
@@ -148,9 +148,6 @@ private:
     bool m_grabbed;
 
     bool m_updateDecorSize;
-    
-public:
-    bool m_resizeQueued;
 };
 
 #endif // _WX_GTK_TOPLEVEL_H_
index 4f3fbe689c7faf95546c15f5a37407520383689a..8990d423040e489ee8d8e37457b7e96fab72f6f3 100644 (file)
@@ -222,13 +222,9 @@ size_allocate(GtkWidget*, GtkAllocation* alloc, wxTopLevelWindowGTK* win)
 
         if (!win->IsIconized())
         {
-#if 1
-            win->m_resizeQueued = true;
-#else
             wxSizeEvent event(size, win->GetId());
             event.SetEventObject(win);
             win->HandleWindowEvent(event);
-#endif
         }
         // else the window is currently unmapped, don't generate size events
     }
@@ -449,8 +445,6 @@ void wxTopLevelWindowGTK::Init()
     m_updateDecorSize = true;
 
     m_urgency_hint = -2;
-    
-    m_resizeQueued = false;
 }
 
 bool wxTopLevelWindowGTK::Create( wxWindow *parent,
@@ -1095,15 +1089,6 @@ void wxTopLevelWindowGTK::OnInternalIdle()
 
         wxTheApp->SetActive(activate, (wxWindow *)g_lastActiveFrame);
     }
-    
-    if (m_resizeQueued)
-    {
-        wxSize size( m_width, m_height );
-        wxSizeEvent event(size, GetId());
-        event.SetEventObject(this);
-        HandleWindowEvent(event);
-        m_resizeQueued = false;
-    }
 }
 
 // ----------------------------------------------------------------------------