p/s proxy icon, rework window locks, segv in close_mixers + exportedl, ffmpeg default...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mainerror.C
index eec7f8a1b66f87c8161b2874c14637f1131c58d3..61ffa7c46b433c09611844598cd704b87cd70115 100644 (file)
@@ -64,27 +64,26 @@ MainErrorGUI::~MainErrorGUI()
 
 void MainErrorGUI::create_objects()
 {
-
+       lock_window("MainErrorGUI::create_objects");
        BC_Button *button;
        add_subwindow(button = new BC_OKButton(this));
        int x = 10, y = 10;
        add_subwindow(title = new BC_Title(x, y, _("The following errors occurred:")));
        y += title->get_h() + 5;
-       add_subwindow(list = new BC_ListBox(x,
-                y,
-                get_w() - 20,
-                button->get_y() - y - 5,
-                LISTBOX_TEXT,                   // Display text list or icons
-                &thread->errors, // Each column has an ArrayList of BC_ListBoxItems.
-                0,             // Titles for columns.  Set to 0 for no titles
-                0,                // width of each column
-                1,                      // Total columns.  Only 1 in icon mode
-                0,                    // Pixel of top of window.
-                0,                     // If this listbox is a popup window with a button
-                LISTBOX_SINGLE,  // Select one item or multiple items
-                ICON_LEFT,        // Position of icon relative to text of each item
+       add_subwindow(list = new BC_ListBox(x, y,
+                get_w() - 20, button->get_y() - y - 5,
+                LISTBOX_TEXT,          // Display text list or icons
+                &thread->errors,       // Each column has an ArrayList of BC_ListBoxItems.
+                0,                     // Titles for columns.  Set to 0 for no titles
+                0,                     // width of each column
+                1,                     // Total columns.  Only 1 in icon mode
+                0,                     // Pixel of top of window.
+                0,                     // If this listbox is a popup window with a button
+                LISTBOX_SINGLE,                // Select one item or multiple items
+                ICON_LEFT,             // Position of icon relative to text of each item
                 0));
        show_window();
+       unlock_window();
 }
 
 int MainErrorGUI::resize_event(int w, int h)