1 /* This file is part of
2 * =================================================
4 * LyX, The Document Processor
5 * Copyright 1995-2000 The LyX Team.
7 * =================================================
9 * \author Michael Koziarski
14 #pragma implementation
22 #include <gtkmm/button.h>
23 #include <gtkmm/textview.h>
25 GErrorDialog::GErrorDialog(ControlError & c)
26 : FormCB<ControlError>(c, "GError")
30 void GErrorDialog::build()
32 // Connect the buttons.
33 button_close()->signal_clicked().connect(
34 SigC::slot(*this, &GErrorDialog::CloseClicked)
37 // Manage the buttons state
38 bc().setCancel(button_close());
40 // Make sure everything is in the correct state.
45 void GErrorDialog::update()
47 textarea()->get_buffer()->set_text(controller().params());
50 Gtk::Button * GErrorDialog::button_close() const
52 return getWidget<Gtk::Button>("r_button_close");
55 Gtk::TextView * GErrorDialog::textarea() const
57 return getWidget<Gtk::TextView>("r_textarea");