2002-09-25 14:26:13 +00:00
|
|
|
/**
|
|
|
|
* \file gnomeBC.C
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Baruch Even
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
2001-03-28 11:14:05 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "gnomeBC.h"
|
2002-06-02 04:15:33 +00:00
|
|
|
|
|
|
|
#include <gtkmm/widget.h>
|
|
|
|
#include <gtkmm/button.h>
|
2001-03-28 11:14:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-03-21 21:21:28 +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)
|
2002-03-27 10:07:57 +00:00
|
|
|
{}
|