diff --git a/repos/gems/include/dialog/types.h b/repos/gems/include/dialog/types.h index eaf5c6623d..0241df3c53 100644 --- a/repos/gems/include/dialog/types.h +++ b/repos/gems/include/dialog/types.h @@ -354,23 +354,23 @@ struct Dialog::Hosted : Meta::Last::Type fn(narrowed); }); } - template - void propagate(Clicked_at const &at, ARGS &&... args) - { - _with_narrowed_at(at, [&] (auto const &at) { this->click(at, args...); }); - } + void propagate(Clicked_at const &at, auto &&... args) { + _with_narrowed_at(at, [&] (auto const &at) { this->click(at, args...); }); } - template - void propagate(Clacked_at const &at, ARGS &&... args) - { - _with_narrowed_at(at, [&] (auto const &at) { this->clack(at, args...); }); - } + void propagate(Clicked_at const &at, auto &&... args) const { + _with_narrowed_at(at, [&] (auto const &at) { this->click(at, args...); }); } - template - void propagate(Dragged_at const &at, ARGS &&... args) - { - _with_narrowed_at(at, [&] (auto const &at) { this->drag(at, args...); }); - } + void propagate(Clacked_at const &at, auto &&... args) { + _with_narrowed_at(at, [&] (auto const &at) { this->clack(at, args...); }); } + + void propagate(Clacked_at const &at, auto &&... args) const { + _with_narrowed_at(at, [&] (auto const &at) { this->clack(at, args...); }); } + + void propagate(Dragged_at const &at, auto &&... args) { + _with_narrowed_at(at, [&] (auto const &at) { this->drag(at, args...); }); } + + void propagate(Dragged_at const &at, auto &&... args) const { + _with_narrowed_at(at, [&] (auto const &at) { this->drag(at, args...); }); } /* * \noapi used internally by 'Scope::widget' diff --git a/repos/gems/include/dialog/widgets.h b/repos/gems/include/dialog/widgets.h index a25832ef20..0f8baa2f1f 100644 --- a/repos/gems/include/dialog/widgets.h +++ b/repos/gems/include/dialog/widgets.h @@ -45,7 +45,7 @@ struct Dialog::Toggle_button : Widget