]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
radiant: center messagebox on main window
authorThomas Debesse <dev@illwieckz.net>
Sat, 4 Apr 2020 05:13:15 +0000 (07:13 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 4 Apr 2020 07:51:21 +0000 (09:51 +0200)
libs/gtkutil/messagebox.cpp

index afecc133c7b4b7b0b009d86fbf666738525b4665..afe74bdcf55d08b8dcfa4f9314efaf78fb072d62 100644 (file)
@@ -60,6 +60,8 @@ EMessageBoxReturn gtk_MessageBox( ui::Window parentWindow, const char* text, con
 
        ui::Window window = create_fixedsize_modal_dialog_window( parentWindow, title, dialog, 400, 100 );
 
+       gtk_window_set_position( window, GTK_WIN_POS_CENTER_ON_PARENT );
+
        if ( parentWindow ) {
                //window.connect( "delete_event", G_CALLBACK(floating_window_delete_present), parent);
                gtk_window_deiconify( parentWindow );