]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
more thread fixes
[wxWidgets.git] / src / gtk / dialog.cpp
index 067aa65fac693772d9d452a9b056bcc620c41b36..ceba49654877a4814af74b2168762bd3f214ceee 100644 (file)
@@ -14,6 +14,9 @@
 #include "wx/dialog.h"
 #include "wx/frame.h"
 #include "wx/app.h"
+
+#include "gdk/gdk.h"
+#include "gtk/gtk.h"
 #include "wx/gtk/win_gtk.h"
 
 //-----------------------------------------------------------------------------
@@ -245,7 +248,7 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh
 
 void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
 {
-    wxASSERT_MSG( (m_widget != NULL), "invalid frame" );
+    wxASSERT_MSG( (m_widget != NULL), "invalid dialog" );
   
     if (GetAutoLayout())
     {
@@ -261,7 +264,7 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
         for(wxNode *node = GetChildren().First(); node; node = node->Next())
         {
             wxWindow *win = (wxWindow *)node->Data();
-            if (!IS_KIND_OF(win,wxFrame) && !IS_KIND_OF(win,wxDialog))
+            if (!wxIS_KIND_OF(win,wxFrame) && !wxIS_KIND_OF(win,wxDialog))
             {
                // it's the second one: do nothing
                 if (child) return;