3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Michael Koziarski
9 * Full author contact details are available in file CREDITS.
18 #include <gtkmm/button.h>
19 #include <gtkmm/textview.h>
21 GErrorDialog::GErrorDialog()
22 : GControlledView<ControlError>("GError")
26 void GErrorDialog::build()
28 // Connect the buttons.
29 button_close()->signal_clicked().connect(
30 SigC::slot(*this, &GErrorDialog::CloseClicked)
33 // Manage the buttons state
34 bc().setCancel(button_close());
36 // Make sure everything is in the correct state.
41 void GErrorDialog::update()
43 textarea()->get_buffer()->set_text(controller().params());
46 Gtk::Button * GErrorDialog::button_close() const
48 return getWidget<Gtk::Button>("r_button_close");
51 Gtk::TextView * GErrorDialog::textarea() const
53 return getWidget<Gtk::TextView>("r_textarea");