X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fshbtnprefs.C;h=b1de0be6c3310f3867bec76418069654fe3d80be;hb=b9f98da8f1cd8b7b31ead02fa41f299b56cac3da;hp=cad3a6a2e9012ebee927a38e21d11a15c1ce6ae0;hpb=047485402c380ee034045712121c649ddf89eda4;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/shbtnprefs.C b/cinelerra-5.1/cinelerra/shbtnprefs.C index cad3a6a2..b1de0be6 100644 --- a/cinelerra-5.1/cinelerra/shbtnprefs.C +++ b/cinelerra-5.1/cinelerra/shbtnprefs.C @@ -200,6 +200,7 @@ ShBtnErrWarn::~ShBtnErrWarn() void ShBtnTextWindow::create_objects() { + lock_window("ShBtnTextWindow::create_objects"); int x = 10, y = 10; int x1 = 160; BC_Title *title = new BC_Title(x, y, _("Label:")); @@ -217,6 +218,7 @@ void ShBtnTextWindow::create_objects() y = get_h() - ShBtnTextOK::calculate_h() - 10; add_subwindow(new ShBtnTextOK(this, x, y)); show_window(); + unlock_window(); } ShBtnTextOK::ShBtnTextOK(ShBtnTextWindow *st_window, int x, int y) @@ -267,6 +269,7 @@ int ShBtnTextDialog::start_edit(ShBtnPref *pref) void ShBtnEditWindow::create_objects() { + lock_window("ShBtnEditWindow::create_objects"); Preferences *preferences = shbtn_edit->pwindow->thread->preferences; for( int i=0; ishbtn_prefs.size(); ++i ) { shbtn_items.append(new ShBtnPrefItem(preferences->shbtn_prefs[i])); @@ -281,6 +284,7 @@ void ShBtnEditWindow::create_objects() add_subwindow(edit_button = new ShBtnEditButton(this, x, y)); add_subwindow(new BC_OKButton(this)); show_window(); + unlock_window(); } int ShBtnEditWindow::start_edit(ShBtnPref *pref)