diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index e93a313d95..288579b661 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -231,6 +231,7 @@ wxFrame::wxFrame() m_mainWidget = (GtkWidget*) NULL; m_menuBarDetached = FALSE; m_toolBarDetached = FALSE; + m_insertCallback = wxInsertChildInFrame; } wxFrame::wxFrame( wxWindow *parent, wxWindowID id, const wxString &title, @@ -246,6 +247,7 @@ wxFrame::wxFrame( wxWindow *parent, wxWindowID id, const wxString &title, m_mainWidget = (GtkWidget*) NULL; m_menuBarDetached = FALSE; m_toolBarDetached = FALSE; + m_insertCallback = wxInsertChildInFrame; Create( parent, id, title, pos, size, style, name ); } diff --git a/src/gtk1/frame.cpp b/src/gtk1/frame.cpp index e93a313d95..288579b661 100644 --- a/src/gtk1/frame.cpp +++ b/src/gtk1/frame.cpp @@ -231,6 +231,7 @@ wxFrame::wxFrame() m_mainWidget = (GtkWidget*) NULL; m_menuBarDetached = FALSE; m_toolBarDetached = FALSE; + m_insertCallback = wxInsertChildInFrame; } wxFrame::wxFrame( wxWindow *parent, wxWindowID id, const wxString &title, @@ -246,6 +247,7 @@ wxFrame::wxFrame( wxWindow *parent, wxWindowID id, const wxString &title, m_mainWidget = (GtkWidget*) NULL; m_menuBarDetached = FALSE; m_toolBarDetached = FALSE; + m_insertCallback = wxInsertChildInFrame; Create( parent, id, title, pos, size, style, name ); }