[glibmm/glibmm-2-52] ActionMap: Really fix add_action_with_parameter()



commit e8e5c1ecabc9672256b56dfd673dad4b4f353ef0
Author: Daniel Boles <dboles src gnome org>
Date:   Thu May 4 14:48:35 2017 +0100

    ActionMap: Really fix add_action_with_parameter()
    
    I replaced the old line that both created an Action without a parameter
    and added it, only with a line that creates an Action with a
    parameter... but did not add it. Of course, we need to do that, too.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774444

 gio/src/actionmap.ccg |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/actionmap.ccg b/gio/src/actionmap.ccg
index 7b09fe7..3bf1ce0 100644
--- a/gio/src/actionmap.ccg
+++ b/gio/src/actionmap.ccg
@@ -56,6 +56,7 @@ ActionMap::add_action_with_parameter(
 {
   auto action = SimpleAction::create(name, parameter_type);
   action->signal_activate().connect(slot);
+  add_action(action);
   return action;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]