2003-09-02 10:29:05 +00:00
|
|
|
/**
|
|
|
|
* \file GBC.C
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
|
|
|
#include "GBC.h"
|
|
|
|
|
|
|
|
|
|
|
|
GBC::GBC(ButtonController const & parent,
|
|
|
|
string const & cancel, string const & close)
|
|
|
|
: GuiBC<Gtk::Button, Gtk::Widget>(parent, cancel, close)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GBC::setButtonEnabled(Gtk::Button * btn, bool enabled) const
|
|
|
|
{
|
|
|
|
btn->set_sensitive(enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GBC::setWidgetEnabled(Gtk::Widget * widget, bool enabled) const
|
|
|
|
{
|
|
|
|
widget->set_sensitive(enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GBC::setButtonLabel(Gtk::Button * btn, string const & label) const
|
|
|
|
{
|
|
|
|
btn->set_label(Glib::locale_to_utf8(label));
|
|
|
|
}
|