[glibmm/glibmm-2-52] ActionMap—Reorder add_action_with_parameter’s args
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-52] ActionMap—Reorder add_action_with_parameter’s args
- Date: Thu, 4 May 2017 13:30:50 +0000 (UTC)
commit 61b774384195d5e0ec7dada546a3f69c6f273408
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 70c68eb..4ec1441 100644
--- a/gio/src/actionmap.hg
+++ b/gio/src/actionmap.hg
@@ -99,11 +99,11 @@ public:
* and adding it to the ActionMap.
*
* @param name The name of the Action.
+ * @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.
- * @parameter_type The type of parameter to be passed to the slot.
* @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]