]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
fixing utf32 native conversion
[wxWidgets.git] / src / gtk / toplevel.cpp
index 4f3fbe689c7faf95546c15f5a37407520383689a..b83113197f7eac813086f6730e6e8c2e7d657c4b 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,
@@ -558,7 +552,7 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
     gtk_container_add( GTK_CONTAINER(m_widget), m_mainWidget );
 
     // m_wxwindow is the client area
-    m_wxwindow = wxPizza::New();
+    m_wxwindow = wxPizza::New(0,this);
     gtk_widget_show( m_wxwindow );
     gtk_container_add( GTK_CONTAINER(m_mainWidget), m_wxwindow );
 
@@ -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;
-    }
 }
 
 // ----------------------------------------------------------------------------