X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Floadfile.C;h=c65a9a28531df854f1a08c2025fe91e696b4ce54;hp=fff3b625c2f8021cf065943c21b8d82fecf57f25;hb=04293346a5ef49683cfa6ca3a98ef6cbfcdf7732;hpb=44f0242e0f313fd1b49675c697629b73dc260d21 diff --git a/cinelerra-5.1/cinelerra/loadfile.C b/cinelerra-5.1/cinelerra/loadfile.C index fff3b625..c65a9a28 100644 --- a/cinelerra-5.1/cinelerra/loadfile.C +++ b/cinelerra-5.1/cinelerra/loadfile.C @@ -183,11 +183,9 @@ void LoadFileWindow::create_objects() lock_window("LoadFileWindow::create_objects"); BC_FileBox::create_objects(); - int x = get_w() / 2 - - LoadMode::calculate_w(this, mwindow->theme) / 2; - int y = get_cancel_button()->get_y() - - LoadMode::calculate_h(this, mwindow->theme); - loadmode = new LoadMode(mwindow, this, x, y, &thread->load_mode, 0); + int x = get_w() / 2 - LoadMode::calculate_w(this, mwindow->theme) / 2; + int y = get_y_margin(); + loadmode = new LoadMode(mwindow, this, x, y, &thread->load_mode, 0, 1); loadmode->create_objects(); add_subwindow(load_file_apply = new LoadFileApply(this)); @@ -199,16 +197,15 @@ void LoadFileWindow::create_objects() int LoadFileWindow::resize_event(int w, int h) { draw_background(0, 0, w, h); - int x = w / 2 - 200; - int y = get_cancel_button()->get_y() - - LoadMode::calculate_h(this, mwindow->theme); + BC_FileBox::resize_event(w, h); + int x = w / 2 - LoadMode::calculate_w(this, mwindow->theme) / 2; + int y = get_y_margin(); loadmode->reposition_window(x, y); - x = (w - BC_GenericButton::calculate_w(this, _("Apply")))/2; y = h - BC_GenericButton::calculate_h() - 15; load_file_apply->reposition_window(x, y); - - return BC_FileBox::resize_event(w, h); + flush(); + return 1; }