handle_done_event booby lock fixes
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / titler / titlerwindow.C
index 25f456df059fb8070b98a547aaf195c335b230d2..a0c7882630a2d197af121ec077dfc2db267bbd6a 100644 (file)
@@ -934,7 +934,7 @@ void TitleWindow::check_style(const char *font_name, int update)
 
 TitleFont::TitleFont(TitleMain *client, TitleWindow *window, int x, int y)
  : BC_PopupTextBox(window, &window->fonts, client->config.font,
-               x, y, 300, 300, LISTBOX_ICON_LIST)
+               x, y, 340, 300, LISTBOX_ICON_LIST)
 {
        this->client = client;
        this->window = window;
@@ -1505,7 +1505,9 @@ void TitleColorPopup::handle_done_event(int result)
 {
        if( !result ) {
                char txt[BCSTRLEN];  sprintf(txt, "<%s #%06x>", _(KW_COLOR), color_value);
+               window->lock_window("TitleColorPopup::handle_done_event");
                window->insert_ibeam(txt);
+               window->unlock_window();
        }
 }
 
@@ -1527,7 +1529,9 @@ void TitlePngPopup::handle_done_event(int result)
        BrowseButtonWindow *gui = (BrowseButtonWindow *)get_gui();
        const char *path = gui->get_submitted_path();
        char txt[BCSTRLEN];  sprintf(txt, "<%s %s>", _(KW_PNG), path);
+       window->lock_window("TitlePngPopup::handle_done_event");
        window->insert_ibeam(txt);
+       window->unlock_window();
 }
 
 BC_Window *TitlePngPopup::new_gui()