]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.C
(John): translate dialog titles.
[lyx.git] / src / frontends / gnome / gnomeBC.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "gnomeBC.h"
8 #include "ButtonController.tmpl"
9 #include "gtk--/widget.h"
10 #include "gtk--/button.h"
11
12 gnomeBC::gnomeBC(string const & cancel, string const & close)
13         : GuiBC<Gtk::Button, Gtk::Widget>(cancel, close)
14 {}
15
16
17 void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
18 {
19         if (obj)
20                 obj->set_sensitive(enabled);
21 }
22
23
24 void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled)
25 {
26         if (btn)
27                 btn->set_sensitive(enabled);
28 }
29
30
31 void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
32 {}