mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 14:41:54 +00:00
centered prefs dialog on main window
This commit is contained in:
parent
060a9ba011
commit
0c2e14b3a1
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue