diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
commit | 56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch) | |
tree | 2656c7ef694117e0554ae4a47bb09629c78ed8af /src/ui/button.cc | |
parent | e6f1fad441a7737549f463ebac1c9de062b5173d (diff) |
scrollpane widget, updated chatbox
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r-- | src/ui/button.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/button.cc b/src/ui/button.cc index e36d036..856c165 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -46,9 +46,6 @@ void Button::set_command(const std::string &command) void Button::draw_border() { - if (!border()) - return; - if (has_mouse_focus()) paint::color(palette()->foreground()); else @@ -57,7 +54,7 @@ void Button::draw_border() paint::border(global_location(), size()); } -void Button::draw_text() +void Button::draw() { if (!text().size()) return; @@ -67,7 +64,7 @@ void Button::draw_text() else paint::color(palette()->foreground()); - paint::text(global_location(), size(), font(), text(), alignment()); + paint::label(global_location(), size(), font(), text(), alignment()); } bool Button::on_keypress(const int key, const unsigned int modifier) |