From 0c2e14b3a196d9f906c29ca2ebd6e3a3188ca7e8 Mon Sep 17 00:00:00 2001 From: freemancw Date: Tue, 25 Dec 2012 09:08:49 -0500 Subject: [PATCH] centered prefs dialog on main window --- radiant/preferences.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index c3021346..d9cff7d6 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -1526,6 +1526,8 @@ void PrefsDlg::BuildDialog(){ dialog = m_pWidget; 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 ); mainvbox = gtk_vbox_new( FALSE, 5 );