]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
centered about on parent window
authorClinton Freeman <freemancw@appstate.edu>
Mon, 2 Apr 2012 01:01:18 +0000 (21:01 -0400)
committerClinton Freeman <freemancw@appstate.edu>
Mon, 2 Apr 2012 01:01:18 +0000 (21:01 -0400)
radiant/gtkdlgs.cpp

index 21237640a0261268e9d4b515edd57735cec5f91c..eeeab1099a3f8e0587d202189d2ff860cccc8202 100644 (file)
@@ -2520,6 +2520,8 @@ void DoAbout(){
 
        // create dialog window
        GtkWidget *dlg = gtk_window_new( GTK_WINDOW_TOPLEVEL );
+       gtk_window_set_transient_for( GTK_WINDOW( dlg ), GTK_WINDOW( g_pParentWnd->m_pWidget ) );
+       gtk_window_set_position( GTK_WINDOW( dlg ), GTK_WIN_POS_CENTER_ON_PARENT );
        gtk_window_set_title( GTK_WINDOW( dlg ), _( "About GtkRadiant" ) );
        gtk_window_set_resizable( GTK_WINDOW( dlg ), FALSE );  
        gtk_signal_connect( GTK_OBJECT( dlg ), "delete_event",
@@ -2668,6 +2670,7 @@ void DoAbout(){
                                                GTK_SIGNAL_FUNC( about_button_changelog ), NULL );
        */
 
+       // show it
        gtk_grab_add( dlg );
        gtk_widget_show( dlg );