]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/funchandlers-GTK.cpp
contrib/bobtoolz: center some dialog windows on main window
[xonotic/netradiant.git] / contrib / bobtoolz / funchandlers-GTK.cpp
index b07bf328f7642c0d5776bc70a340d9801d506d1b..decbf8ad49825f1ae49404e33ff484b97100bbb0 100644 (file)
@@ -202,7 +202,7 @@ void DoFixBrushes(){
        globalOutputStream() << "bobToolz FixBrushes: " << count << " invalid/duplicate planes removed.\n";
 }
 
-void DoResetTextures(){
+void DoResetTextures( ui::Window main_window ){
        UndoableCommand undo( "bobToolz.resetTextures" );
        static ResetTextureRS rs;
 
@@ -217,7 +217,7 @@ void DoResetTextures(){
        }
 
        EMessageBoxReturn ret;
-       if ( ( ret = DoResetTextureBox( &rs ) ) == eIDCANCEL ) {
+       if ( ( ret = DoResetTextureBox( &rs, main_window ) ) == eIDCANCEL ) {
                return;
        }
 
@@ -362,10 +362,10 @@ void DoBuildDoors(){
        }
 }
 
-void DoPathPlotter(){
+void DoPathPlotter( ui::Window main_window ){
        UndoableCommand undo( "bobToolz.pathPlotter" );
        PathPlotterRS rs;
-       EMessageBoxReturn ret = DoPathPlotterBox( &rs );
+       EMessageBoxReturn ret = DoPathPlotterBox( &rs, main_window );
        if ( ret == eIDCANCEL ) {
                return;
        }