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 _GLIBCXX_CONCEPT_CHECKS
15 #undef _GLIBCXX_CONCEPT_CHECKS
17 #ifdef _GLIBCPP_CONCEPT_CHECKS
18 #undef _GLIBCPP_CONCEPT_CHECKS
28 GBC::GBC(ButtonController const & parent,
29 string const & cancel, string const & close)
30 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
35 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
37 btn->set_sensitive(enabled);
41 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
43 widget->set_sensitive(enabled);
47 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
49 // GTK+ Stock buttons take precedence
50 if (!btn->get_use_stock())
51 btn->set_label(Glib::locale_to_utf8(label));
54 } // namespace frontend