MainErrorGUI::MainErrorGUI(MWindow *mwindow, MainError *thread, int x, int y)
- : BC_Window(_(PROGRAM_NAME ": Errors"),
+ : BC_Window(_(PROGRAM_NAME ": Messages"),
x,
y,
mwindow->session->ewindow_w,
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:")));
+ add_subwindow(title = new BC_Title(x, y, _("Message log:")));
y += title->get_h() + 5;
add_subwindow(list = new BC_ListBox(x, y,
get_w() - 20, button->get_y() - y - 5,
void MainError::show_error_local(const char *string)
{
// assume user won't get to closing the GUI here
- lock_window("MainError::show_error_local");
+ lock_dialog("MainError::show_error_local");
if( get_gui() ) {
MainErrorGUI *gui = (MainErrorGUI*)get_gui();
gui->lock_window("MainError::show_error_local");
append_error(string);
start();
}
- unlock_window();
+ unlock_dialog();
}