From 58ffdbff028f763451f471639c6aecc530ca4d94 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 21 Mar 2005 21:27:59 +0000 Subject: Some cleanups and button, radiobutton and checkbox now take into account disabled status. --- src/gui/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/button.cpp') diff --git a/src/gui/button.cpp b/src/gui/button.cpp index c508afe2..fb1a01ec 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -57,7 +57,7 @@ Button::Button(const std::string& caption): void Button::draw(gcn::Graphics* graphics) { int mode; - if (false /*disabled*/) { + if (!isEnabled()) { mode = 3; } else if (isPressed()) { -- cgit v1.2.3-70-g09d2