]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
Corrected some .tex problems
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 2c7594587cbe302778c66ed1edf0ed8ae43e0f1e..a2c3a2bf3e1e7b34a792608157b41a507df9b7e8 100644 (file)
@@ -96,9 +96,8 @@ END_EVENT_TABLE()
 
 IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxPanel)
 
-wxDialog::wxDialog()
+void wxDialog::Init()
 {
-    m_title = "";
     m_sizeSet = FALSE;
     m_modalShowing = FALSE;
 }
@@ -108,8 +107,8 @@ wxDialog::wxDialog( wxWindow *parent,
                     const wxPoint &pos, const wxSize &size,
                     long style, const wxString &name )
 {
-    m_modalShowing = FALSE;
-    m_sizeSet = FALSE;
+    Init();
+
     Create( parent, id, title, pos, size, style, name );
 }
 
@@ -290,7 +289,7 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
     }
 }
 
-void wxDialog::SetSize( int x, int y, int width, int height, int sizeFlags )
+void wxDialog::DoSetSize( int x, int y, int width, int height, int sizeFlags )
 {
     wxASSERT_MSG( (m_widget != NULL), "invalid dialog" );
     wxASSERT_MSG( (m_wxwindow != NULL), "invalid dialog" );
@@ -350,11 +349,6 @@ void wxDialog::SetSize( int x, int y, int width, int height, int sizeFlags )
     m_resizing = FALSE;
 }
 
-void wxDialog::SetSize( int width, int height )
-{
-    SetSize( -1, -1, width, height, wxSIZE_USE_EXISTING );
-}
-
 void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height )
 {
     // due to a bug in gtk, x,y are always 0