]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
if the wxTextCtrl is empty set by SetInsertionPointEnd to 0 and not to -1.
[wxWidgets.git] / src / gtk / dialog.cpp
index 73ae00a02b40b5746350640e9e2f7ad115160987..589ef94f458c96c3f82e7c0d7cf2b4713594dfac 100644 (file)
@@ -2,9 +2,8 @@
 // Name:        dialog.cpp
 // Purpose:
 // Author:      Robert Roebling
-// Created:     01/02/97
-// Id:
-// Copyright:   (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Id:          $Id$
+// Copyright:   (c) 1998 Robert Roebling
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -99,6 +98,9 @@ bool wxDialog::Create( wxWindow *parent,
      
   gtk_widget_set_usize( m_widget, m_width, m_height );
      
+  if (m_parent) m_parent->AddChild( this );
+  
+  
   PostCreation();
   
   return TRUE;
@@ -288,5 +290,3 @@ void wxDialog::SetIcon( const wxIcon &icon )
   
   gdk_window_set_icon( m_widget->window, (GdkWindow *) NULL, icon.GetPixmap(), bm );
 }
-
-