summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-10 14:34:11 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-10 14:34:11 +0200
commit14a200e15e62c2a854f644085330de9a2743b964 (patch)
treee130d609ef7c963128fedb8e80b65f2cd13ce4ca /unity-shared
parent048c2781c541ca0907856d2d13f17b4dc456a71c (diff)
FilterRatingsButton: simply extend RatingsButton, remove a lot of duplicated code
(bzr r3830.5.16)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/RatingsButton.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/unity-shared/RatingsButton.cpp b/unity-shared/RatingsButton.cpp
index 480f2e54f..9e30bc446 100644
--- a/unity-shared/RatingsButton.cpp
+++ b/unity-shared/RatingsButton.cpp
@@ -63,9 +63,7 @@ RatingsButton::RatingsButton(int star_size, int star_gap, NUX_FILE_LINE_DECL)
key_nav_focus_activate.connect([this](nux::Area*) { SetRating(static_cast<float>(focused_star_+1)/NUM_STARS); });
key_down.connect(sigc::mem_fun(this, &RatingsButton::OnKeyDown));
- scale.changed.connect([this] (double scale) {
- QueueDraw();
- });
+ scale.changed.connect(sigc::hide(sigc::mem_fun(this, &RatingsButton::QueueDraw)));
}
void RatingsButton::SetEditable(bool editable)