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
13 #pragma implementation
21 #include <gtkmm/button.h>
22 #include <gtkmm/textview.h>
24 GErrorDialog::GErrorDialog(ControlError & c)
25 : GnomeCB<ControlError>(c, "GError")
29 void GErrorDialog::build()
31 // Connect the buttons.
32 button_close()->signal_clicked().connect(
33 SigC::slot(*this, &GErrorDialog::CloseClicked)
36 // Manage the buttons state
37 bc().setCancel(button_close());
39 // Make sure everything is in the correct state.
44 void GErrorDialog::update()
46 textarea()->get_buffer()->set_text(controller().params());
49 Gtk::Button * GErrorDialog::button_close() const
51 return getWidget<Gtk::Button>("r_button_close");
54 Gtk::TextView * GErrorDialog::textarea() const
56 return getWidget<Gtk::TextView>("r_textarea");