lyx_mirror/src/frontends/gnome/gnomeBC.C
Allan Rae 4e61c013f4 fix doxygen operation ; stop #warning causing errors on Sun CC 6.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1919 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-17 00:19:49 +00:00

38 lines
680 B
C

#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);
}