projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor changes and bug corrections (interface unchanged)
[wxWidgets.git]
/
src
/
gtk1
/
filedlg.cpp
diff --git
a/src/gtk1/filedlg.cpp
b/src/gtk1/filedlg.cpp
index bc003c8185b18b2c66ad7956c7dd181e89578698..b4d0ed159285c7b8ceeffbde3446047df4150114 100644
(file)
--- a/
src/gtk1/filedlg.cpp
+++ b/
src/gtk1/filedlg.cpp
@@
-65,6
+65,10
@@
wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
m_widget = gtk_file_selection_new( "File selection" );
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);
GtkFileSelection *sel = GTK_FILE_SELECTION(m_widget);
m_path.Append(m_dir);