summaryrefslogtreecommitdiff
path: root/gio/src/actionmap.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'gio/src/actionmap.ccg')
-rw-r--r--gio/src/actionmap.ccg4
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/src/actionmap.ccg b/gio/src/actionmap.ccg
index da803bb8..054eee3a 100644
--- a/gio/src/actionmap.ccg
+++ b/gio/src/actionmap.ccg
@@ -33,9 +33,9 @@ ActionMap::add_action(const Glib::ustring& name)
Glib::RefPtr<SimpleAction>
ActionMap::add_action_with_parameter(
- const Glib::ustring& name, const ActivateWithParameterSlot& slot)
+ const Glib::ustring& name, const ActivateWithParameterSlot& slot, const Glib::VariantType& parameter_type)
{
- auto action = add_action(name);
+ auto action = SimpleAction::create(name, parameter_type);
action->signal_activate().connect(slot);
return action;
}