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.
19 GBC::GBC(ButtonController const & parent,
20 string const & cancel, string const & close)
21 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
26 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
28 btn->set_sensitive(enabled);
32 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
34 widget->set_sensitive(enabled);
38 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
40 btn->set_label(Glib::locale_to_utf8(label));