summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-02-13 23:49:17 +0000
committerMurray Cumming <murrayc@murrayc.com>2017-05-04 15:29:43 +0200
commit61b774384195d5e0ec7dada546a3f69c6f273408 (patch)
treec9334f60bca6e26b4c58f3c8360202cb93913a21
parent8839e356da3b0a9ab784328a489e163b58cc7af9 (diff)
downloadglibmm-61b774384195d5e0ec7dada546a3f69c6f273408.tar.gz
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
-rw-r--r--gio/src/actionmap.ccg2
-rw-r--r--gio/src/actionmap.hg4
2 files changed, 3 insertions, 3 deletions
diff --git a/gio/src/actionmap.ccg b/gio/src/actionmap.ccg
index 55986426..ff79bbde 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 70c68ebf..4ec1441d 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