mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
4e61c013f4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1919 a592a061-630c-0410-9148-cb99ea01b6c8
38 lines
680 B
C
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);
|
|
}
|