X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fwwindow.C;h=4f522f3179f099de3ee2622836771b6a3534a6eb;hb=163923953049a5be18026801eba4fcec8bc87c07;hp=7759d7d0a45069eb19689b7524165c0878899d6c;hpb=29cc4023b50d6f7f9ab518978d8c9e839832b900;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/wwindow.C b/cinelerra-5.1/cinelerra/wwindow.C index 7759d7d0..4f522f31 100644 --- a/cinelerra-5.1/cinelerra/wwindow.C +++ b/cinelerra-5.1/cinelerra/wwindow.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "bcdisplayinfo.h" @@ -79,6 +79,7 @@ WWindowGUI::WWindowGUI(WWindow *thread, int x, int y) void WWindowGUI::create_objects() { + lock_window("WWindowGUI::create_objects"); int x = 10, y = 10; add_subwindow(new BC_TextBox(x, y, get_w()-50, 3, thread->warn_text)); y = get_h() - 30; @@ -87,6 +88,7 @@ void WWindowGUI::create_objects() x = get_w() - BC_CancelButton::calculate_w() - 10; add_subwindow(new BC_CancelButton(x, y)); show_window(); + unlock_window(); } WDisable::WDisable(WWindowGUI *gui, int x, int y)