Commit 90ae40ab authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Update lib.rs

parent 2ffe3205
Pipeline #160328 passed with stage
in 2 minutes and 31 seconds
......@@ -29,7 +29,7 @@ macro_rules! send {
#[macro_export]
macro_rules! action {
($actions_group:expr, $name:expr, $param_type:expr, $callback:expr) => {
let simple_action = gio::SimpleAction::new($name, $param_type);
let simple_action = gio::SimpleAction::new($name, &$param_type.as_ref());
simple_action.connect_activate($callback);
$actions_group.add_action(&simple_action);
};
......@@ -38,7 +38,7 @@ macro_rules! action {
#[macro_export]
macro_rules! stateful_action {
($actions_group:expr, $name:expr, $param_type:expr, $state:expr, $callback:expr) => {
let simple_action = gio::SimpleAction::new_stateful($name, $param_type, &$state.to_variant());
let simple_action = gio::SimpleAction::new_stateful($name, &$param_type.as_ref(), &$state.to_variant());
simple_action.connect_activate($callback);
$actions_group.add_action(&simple_action);
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment