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.
21 GBC::GBC(ButtonController const & parent,
22 string const & cancel, string const & close)
23 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
28 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
30 btn->set_sensitive(enabled);
34 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
36 widget->set_sensitive(enabled);
40 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
42 btn->set_label(Glib::locale_to_utf8(label));
45 } // namespace frontend