diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-23 18:38:24 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-23 18:38:24 +0100 |
| commit | 17d785626a6f2a439ccb622347df891ff5f7481e (patch) | |
| tree | 66685a093ac54d03bc114c9f398f77f420009298 /shortcuts | |
| parent | 1f2051b749317180f6b84b6878503296417178c7 (diff) | |
ShortcutController: some cleanup
(bzr r2919.3.69)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/ShortcutController.cpp | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp index 323f12575..7284a10dc 100644 --- a/shortcuts/ShortcutController.cpp +++ b/shortcuts/ShortcutController.cpp @@ -46,25 +46,16 @@ Controller::Controller(BaseWindowRaiser::Ptr const& base_window_raiser, { ubus_manager_.RegisterInterest(UBUS_BACKGROUND_COLOR_CHANGED, sigc::mem_fun(this, &Controller::OnBackgroundUpdate)); - - ubus_manager_.RegisterInterest(UBUS_LAUNCHER_START_KEY_SWITCHER, [this] (GVariant*) { - enabled_ = false; - }); - - ubus_manager_.RegisterInterest(UBUS_LAUNCHER_END_KEY_SWITCHER, [this] (GVariant*) { - enabled_ = true; - }); - - ubus_manager_.RegisterInterest(UBUS_OVERLAY_SHOWN, [this] (GVariant*) { - Hide(); - }); + ubus_manager_.RegisterInterest(UBUS_LAUNCHER_START_KEY_SWITCHER, [this] (GVariant*) + { SetEnabled(false); }); + ubus_manager_.RegisterInterest(UBUS_LAUNCHER_END_KEY_SWITCHER, [this] (GVariant*) + { SetEnabled(true); }); + ubus_manager_.RegisterInterest(UBUS_OVERLAY_SHOWN, + sigc::hide(sigc::mem_fun(this, &Controller::Hide))); ubus_manager_.SendMessage(UBUS_BACKGROUND_REQUEST_COLOUR_EMIT); - fade_animator_.updated.connect([this] (double opacity) { - SetOpacity(opacity); - }); - + fade_animator_.updated.connect(sigc::mem_fun(this, &Controller::SetOpacity)); modeller_->model_changed.connect(sigc::mem_fun(this, &Controller::OnModelUpdated)); } |
