From b123eb709355b94a7c25ec1ec12ff7a428f7c186 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Nov 2013 18:18:50 +0000 Subject: Remove 'action' mouse pointer. --- src/ui/button.cc | 6 +++--- src/ui/iconbutton.cc | 6 +++--- src/ui/listitem.cc | 7 +++---- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'src/ui') diff --git a/src/ui/button.cc b/src/ui/button.cc index e9a40b9..6c34a4f 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -88,9 +88,9 @@ void Button::draw() Paint::draw_label(global_location(), size(), font(), text(), alignment()); - if (enabled() && has_mouse_focus()) { - root()->set_pointer("action", Palette::Highlight); - } +// if (enabled() && has_mouse_focus()) { +// root()->set_pointer("action", Palette::Highlight); +// } } bool Button::on_keypress(const int key, const unsigned int modifier) diff --git a/src/ui/iconbutton.cc b/src/ui/iconbutton.cc index 066f5fa..b8dda87 100644 --- a/src/ui/iconbutton.cc +++ b/src/ui/iconbutton.cc @@ -85,9 +85,9 @@ void IconButton::draw() Paint::draw_bitmap(global_location(), size(), color, icon()); - if (enabled() && has_mouse_focus()) { - root()->set_pointer("action", Palette::Highlight); - } +// if (enabled() && has_mouse_focus()) { +// root()->set_pointer("action", Palette::Highlight); +// } } diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc index 634cbaf..d7c3f1e 100644 --- a/src/ui/listitem.cc +++ b/src/ui/listitem.cc @@ -58,10 +58,9 @@ void ListItem::draw() Paint::draw_label(global_location(), size(), font(), text(), alignment()); - if (enabled() && has_mouse_focus()) { - root()->set_pointer("action", Palette::Highlight); - } - +// if (enabled() && has_mouse_focus()) { +// root()->set_pointer("action", Palette::Highlight); +// } } void ListItem::on_mouseover(const math::Vector2f &cursor) -- cgit v1.2.3