centered prefs dialog on main window

This commit is contained in:
freemancw 2012-12-25 09:08:49 -05:00
parent 060a9ba011
commit 0c2e14b3a1

View file

@ -1526,6 +1526,8 @@ void PrefsDlg::BuildDialog(){
dialog = m_pWidget; dialog = m_pWidget;
gtk_window_set_title( GTK_WINDOW( dialog ), _( "GtkRadiant Preferences" ) ); gtk_window_set_title( GTK_WINDOW( dialog ), _( "GtkRadiant Preferences" ) );
gtk_window_set_transient_for( GTK_WINDOW( dialog ), GTK_WINDOW( g_pParentWnd->m_pWidget ) );
gtk_window_set_position( GTK_WINDOW( dialog ), GTK_WIN_POS_CENTER_ON_PARENT );
gtk_widget_realize( dialog ); gtk_widget_realize( dialog );
mainvbox = gtk_vbox_new( FALSE, 5 ); mainvbox = gtk_vbox_new( FALSE, 5 );