]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.C
Joao latest bits
[lyx.git] / src / frontends / gnome / gnomeBC.C
1 /**
2  * \file gnomeBC.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Baruch Even
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10 #include <config.h>
11
12
13 #include "gnomeBC.h"
14
15 #include <gtkmm/widget.h>
16 #include <gtkmm/button.h>
17
18 gnomeBC::gnomeBC(string const & cancel, string const & close)
19         : GuiBC<Gtk::Button, Gtk::Widget>(cancel, close)
20 {}
21
22
23 void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
24 {
25         if (obj)
26                 obj->set_sensitive(enabled);
27 }
28
29
30 void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled)
31 {
32         if (btn)
33                 btn->set_sensitive(enabled);
34 }
35
36
37 void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
38 {}