From: Thomas Debesse Date: Sat, 4 Apr 2020 05:13:15 +0000 (+0200) Subject: radiant: center messagebox on main window X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da03c19ffecee95425bc7058d4f6daab2a568154;p=xonotic%2Fnetradiant.git radiant: center messagebox on main window --- diff --git a/libs/gtkutil/messagebox.cpp b/libs/gtkutil/messagebox.cpp index afecc133..afe74bdc 100644 --- a/libs/gtkutil/messagebox.cpp +++ b/libs/gtkutil/messagebox.cpp @@ -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 );