From 14a200e15e62c2a854f644085330de9a2743b964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 10 Jul 2014 14:34:11 +0200 Subject: FilterRatingsButton: simply extend RatingsButton, remove a lot of duplicated code (bzr r3830.5.16) --- unity-shared/RatingsButton.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'unity-shared') 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(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) -- cgit v1.2.3