X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fshbtnprefs.C;h=5d719beb7c91486af8735ab973c1ca70392424d3;hb=2ce5f3585284c78107b6eab879ee4e94686ff41a;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..5d719beb 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) @@ -253,7 +255,9 @@ BC_Window *ShBtnTextDialog::new_gui() void ShBtnTextDialog::handle_close_event(int result) { if( !result ) { + sb_window->lock_window("ShBtnTextDialog::handle_close_event"); sb_window->list_update(); + sb_window->unlock_window(); } st_window = 0; } @@ -267,6 +271,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 +286,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)