X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a60c99e6a919bad02f33ee1429a831f00b0df819..605c9c8318875c590fce53cd2ce5d5aabcc92564:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 73ae00a02b..589ef94f45 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -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 ); } - -