refactor(modules): Move setup to constructor
This commit is contained in:
parent
81e6fb062f
commit
c01f111e34
52 changed files with 100 additions and 149 deletions
include/modules
|
@ -25,9 +25,8 @@ namespace modules {
|
|||
*/
|
||||
class xbacklight_module : public static_module<xbacklight_module>, public xpp::event::sink<evt::randr_notify> {
|
||||
public:
|
||||
explicit xbacklight_module(const bar_settings& bar, string name);
|
||||
explicit xbacklight_module(const bar_settings& bar, string name_);
|
||||
|
||||
void setup();
|
||||
void teardown();
|
||||
void handle(const evt::randr_notify& evt);
|
||||
void update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue