From: Thomas Debesse Date: Sat, 4 Apr 2020 08:07:56 +0000 (+0200) Subject: radiant/build: center buildmenu editor on screen X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93da1c9daabec037b2acf31a3196a9ea5c108d81;p=xonotic%2Fnetradiant.git radiant/build: center buildmenu editor on screen I haven't managed to center it on main windows centering on screen is still better than top -left --- diff --git a/radiant/build.cpp b/radiant/build.cpp index 7090b98f..5a539a6c 100644 --- a/radiant/build.cpp +++ b/radiant/build.cpp @@ -842,6 +842,8 @@ gboolean commands_key_press( ui::TreeView widget, GdkEventKey* event, ui::ListSt ui::Window BuildMenuDialog_construct( ModalDialog& modal, ProjectList& projectList ){ ui::Window window = MainFrame_getWindow().create_dialog_window("Build Menu", G_CALLBACK(dialog_delete_callback ), &modal, -1, 400 ); + gtk_window_set_position( window, GTK_WIN_POS_CENTER_ALWAYS ); + { auto table1 = create_dialog_table( 2, 2, 4, 4, 4 ); window.add(table1);