]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.C
Michael's latest batch of new gnome files.
[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         if (btn)
26                 btn->set_sensitive(enabled);
27 }
28
29
30 void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
31 {
32 #ifdef WITH_WARNINGS
33 #warning Implement me! (be 20010329)
34 #endif
35         // There is no methods set_text!
36         //obj->set_text(label);
37 }