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.
20 GBC::GBC(ButtonController const & parent,
21 string const & cancel, string const & close)
22 : GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
27 void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
29 btn->set_sensitive(enabled);
33 void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
35 widget->set_sensitive(enabled);
39 void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
41 //GTK+ Stock buttons take precedence
42 if (!btn->get_use_stock())
43 btn->set_label(Glib::locale_to_utf8(label));
46 } // namespace frontend