]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/filedlg.cpp
minor changes and bug corrections (interface unchanged)
[wxWidgets.git] / src / gtk1 / filedlg.cpp
index bc003c8185b18b2c66ad7956c7dd181e89578698..b4d0ed159285c7b8ceeffbde3446047df4150114 100644 (file)
@@ -65,6 +65,10 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
   
   m_widget = gtk_file_selection_new( "File selection" );
   
+  int x = (gdk_screen_width () - 400) / 2;
+  int y = (gdk_screen_height () - 400) / 2;
+  gtk_widget_set_uposition( m_widget, x, y );
+  
   GtkFileSelection *sel = GTK_FILE_SELECTION(m_widget);
 
   m_path.Append(m_dir);