mirror of
https://github.com/polybar/polybar.git
synced 2026-03-07 00:36:56 +00:00
actions: Separate data from action string
Modules now no longer need to manually parse the action string and extract data from it.
This commit is contained in:
committed by
Patrick Ziegler
parent
8acedeef87
commit
bc1b86c584
@ -442,8 +442,8 @@ void builder::action(mousebtn index, string action) {
|
||||
/**
|
||||
* Open action tag for the action of the given input_handler
|
||||
*/
|
||||
void builder::action(mousebtn btn, const modules::input_handler& handler, string action_name) {
|
||||
action(btn, actions_util::get_action_string(handler, action_name));
|
||||
void builder::action(mousebtn btn, const modules::input_handler& handler, string action_name, string data) {
|
||||
action(btn, actions_util::get_action_string(handler, action_name, data));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -461,8 +461,8 @@ void builder::action(mousebtn index, string action_name, const label_t& label) {
|
||||
/**
|
||||
* Wrap label in module action tag
|
||||
*/
|
||||
void builder::action(mousebtn btn, const modules::input_handler& handler, string action_name, const label_t& label) {
|
||||
action(btn, actions_util::get_action_string(handler, action_name), label);
|
||||
void builder::action(mousebtn btn, const modules::input_handler& handler, string action_name, string data, const label_t& label) {
|
||||
action(btn, actions_util::get_action_string(handler, action_name, data), label);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user