3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
17 GBC::GBC(ButtonController const & parent,
18 string const & cancel, string const & close)
19 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
24 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
26 btn->set_sensitive(enabled);
30 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
32 widget->set_sensitive(enabled);
36 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
38 btn->set_label(Glib::locale_to_utf8(label));