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.
13 // Too hard to make concept checks work with this file
14 #ifdef _GLIBCPP_CONCEPT_CHECKS
15 #undef _GLIBCPP_CONCEPT_CHECKS
25 GBC::GBC(ButtonController const & parent,
26 string const & cancel, string const & close)
27 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
32 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
34 btn->set_sensitive(enabled);
38 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
40 widget->set_sensitive(enabled);
44 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
46 // GTK+ Stock buttons take precedence
47 if (!btn->get_use_stock())
48 btn->set_label(Glib::locale_to_utf8(label));
51 } // namespace frontend