lyx_mirror/src/frontends/gnome/gnomeBC.C

38 lines
680 B
C++
Raw Normal View History

#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "gnomeBC.h"
#include "gtk--/widget.h"
#include "gtk--/button.h"
gnomeBC::gnomeBC(string const & cancel, string const & close)
: GuiBC<Gtk::Button, Gtk::Widget>(cancel, close)
{}
void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
{
if (obj)
obj->set_sensitive(enabled);
}
void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled)
{
if (btn)
btn->set_sensitive(enabled);
}
void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
{
#ifdef WITH_WARNINGS
#warning Implement me! (be 20010329)
#endif
// There is no methods set_text!
//obj->set_text(label);
}