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 <gtk--/button.h>
23 #include <gtk--/text.h>
25 GError::GError(ControlError & c)
26 : FormCB<ControlError>(c, "GError")
32 // Connect the buttons.
33 button_close()->clicked.connect(SigC::slot(this, &GError::CloseClicked));
35 // Manage the buttons state
36 bc().setCancel(button_close());
38 // Make sure everything is in the correct state.
45 textarea()->insert(controller().params());
48 Gtk::Button * GError::button_close() const
50 return getWidget<Gtk::Button>("r_button_close");
53 Gtk::Text * GError::textarea() const
55 return getWidget<Gtk::Text>("r_textarea");