]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GError.C
fix math fonts with LyX/Mac
[lyx.git] / src / frontends / gnome / GError.C
1 /**
2  * \file GError.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Michael Koziarski
7  * \author Baruch Even
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12
13 #include <config.h>
14
15 #include "gnomeBC.h"
16 #include "GError.h"
17
18 #include <gtkmm/button.h>
19 #include <gtkmm/textview.h>
20
21 GErrorDialog::GErrorDialog()
22         : GControlledView<ControlError>("GError")
23 {}
24
25
26 void GErrorDialog::build()
27 {
28         // Connect the buttons.
29         button_close()->signal_clicked().connect(
30                 SigC::slot(*this, &GErrorDialog::CloseClicked)
31                 );
32
33         // Manage the buttons state
34         bc().setCancel(button_close());
35
36         // Make sure everything is in the correct state.
37         bc().refresh();
38 }
39
40
41 void GErrorDialog::update()
42 {
43         textarea()->get_buffer()->set_text(controller().params());
44 }
45
46 Gtk::Button * GErrorDialog::button_close() const
47 {
48         return getWidget<Gtk::Button>("r_button_close");
49 }
50
51 Gtk::TextView * GErrorDialog::textarea() const
52 {
53         return getWidget<Gtk::TextView>("r_textarea");
54 }