Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-19 13:45:07 +0000
committerStijn Buys <ingar@osirion.org>2008-10-19 13:45:07 +0000
commit56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch)
tree2656c7ef694117e0554ae4a47bb09629c78ed8af /src/ui/button.cc
parente6f1fad441a7737549f463ebac1c9de062b5173d (diff)
scrollpane widget, updated chatbox
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r--src/ui/button.cc7
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)