[glibmm] ActionMap—Reorder add_action_with_parameter’s args
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] ActionMap—Reorder add_action_with_parameter’s args
- Date: Tue, 14 Feb 2017 19:07:08 +0000 (UTC)
commit ef9ea241f758e567f25af597c61dd47ae0a5d27f
Author: Daniel Boles <dboles src gnome org>
Date: Mon Feb 13 23:49:17 2017 +0000
ActionMap—Reorder add_action_with_parameter’s args
This matches e.g. simpleaction.hg and is what I originally intended.
https://bugzilla.gnome.org/show_bug.cgi?id=774444
gio/src/actionmap.ccg | 2 +-
gio/src/actionmap.hg | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/actionmap.ccg b/gio/src/actionmap.ccg
index 5598642..ff79bbd 100644
--- a/gio/src/actionmap.ccg
+++ b/gio/src/actionmap.ccg
@@ -41,7 +41,7 @@ ActionMap::add_action(const Glib::ustring& name, const ActivateSlot& slot)
Glib::RefPtr<SimpleAction>
ActionMap::add_action_with_parameter(
- const Glib::ustring& name, const ActivateWithParameterSlot& slot, const Glib::VariantType& parameter_type)
+ const Glib::ustring& name, const Glib::VariantType& parameter_type, const ActivateWithParameterSlot& slot)
{
auto action = SimpleAction::create(name, parameter_type);
action->signal_activate().connect(slot);
diff --git a/gio/src/actionmap.hg b/gio/src/actionmap.hg
index 1ae1615..28b6492 100644
--- a/gio/src/actionmap.hg
+++ b/gio/src/actionmap.hg
@@ -96,11 +96,11 @@ public:
* and adding it to the ActionMap.
*
* @param name The name of the Action.
- * @param slot The callback method to be called when the action is activated.
* @param parameter_type The type of parameter to be passed to the slot.
+ * @param slot The callback method to be called when the action is activated.
* @return The Action.
*/
- Glib::RefPtr<SimpleAction> add_action_with_parameter(const Glib::ustring& name, const
ActivateWithParameterSlot& slot, const Glib::VariantType& parameter_type);
+ Glib::RefPtr<SimpleAction> add_action_with_parameter(const Glib::ustring& name, const Glib::VariantType&
parameter_type, const ActivateWithParameterSlot& slot);
/** A convenience method for creating a boolean-stateful SimpleAction instance
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]