]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.C
* Baruch's GuiBC template.
[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 "gtk--/widget.h"
9 #include "gtk--/button.h"
10
11 gnomeBC::gnomeBC(string const & cancel, string const & close)
12         : GuiBC<Gtk::Button, Gtk::Widget>(cancel, close)
13 {}
14
15
16 void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
17 {
18         if (obj)
19                 obj->set_sensitive(enabled);
20 }
21
22
23 void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled) 
24 {
25         setWidgetEnabled(btn, enabled);
26 }
27
28
29 void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
30 {
31 #warning Implement me! (be 20010329)
32         obj->set_text(label);
33 }