2001-03-28 11:14:05 +00:00
|
|
|
#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)
|
2001-03-30 09:51:46 +00:00
|
|
|
: GuiBC<Gtk::Button, Gtk::Widget>(cancel, close)
|
2001-03-28 11:14:05 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
|
2001-03-28 11:14:05 +00:00
|
|
|
{
|
2001-03-30 09:51:46 +00:00
|
|
|
if (obj)
|
|
|
|
obj->set_sensitive(enabled);
|
2001-03-28 11:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled)
|
2001-03-28 11:14:05 +00:00
|
|
|
{
|
2001-03-30 18:49:10 +00:00
|
|
|
if (btn)
|
|
|
|
btn->set_sensitive(enabled);
|
2001-03-30 09:51:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
|
|
|
|
{
|
2001-04-17 00:19:49 +00:00
|
|
|
#ifdef WITH_WARNINGS
|
2001-03-30 09:51:46 +00:00
|
|
|
#warning Implement me! (be 20010329)
|
2001-04-17 00:19:49 +00:00
|
|
|
#endif
|
2001-03-30 18:49:10 +00:00
|
|
|
// There is no methods set_text!
|
|
|
|
//obj->set_text(label);
|
2001-03-28 11:14:05 +00:00
|
|
|
}
|