[glibmm] ActionMap: Really fix add_action_with_parameter()



commit 200c176ed863c94905a69f26e21dcc38800d0234
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#c31

 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 ff79bbd..2907721 100644
--- a/gio/src/actionmap.ccg
+++ b/gio/src/actionmap.ccg
@@ -45,6 +45,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]