From ac89bfd229b952e487722ed10d40965933f7cd38 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 28 Aug 2016 23:30:33 +1000 Subject: [PATCH] Use XMLNode::set_property API in Gtkmm2ext::Bindings class --- libs/gtkmm2ext/bindings.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index b8da028a95..291cd60686 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -730,16 +730,16 @@ Bindings::save (XMLNode& root) } child = new XMLNode (X_("Binding")); - child->add_property (X_("key"), k->first.name()); - child->add_property (X_("action"), k->second.action_name); + child->set_property (X_("key"), k->first.name()); + child->set_property (X_("action"), k->second.action_name); presses->add_child_nocopy (*child); } for (MouseButtonBindingMap::iterator k = button_press_bindings.begin(); k != button_press_bindings.end(); ++k) { XMLNode* child; child = new XMLNode (X_("Binding")); - child->add_property (X_("button"), k->first.name()); - child->add_property (X_("action"), k->second.action_name); + child->set_property (X_("button"), k->first.name()); + child->set_property (X_("action"), k->second.action_name); presses->add_child_nocopy (*child); } @@ -753,16 +753,16 @@ Bindings::save (XMLNode& root) } child = new XMLNode (X_("Binding")); - child->add_property (X_("key"), k->first.name()); - child->add_property (X_("action"), k->second.action_name); + child->set_property (X_("key"), k->first.name()); + child->set_property (X_("action"), k->second.action_name); releases->add_child_nocopy (*child); } for (MouseButtonBindingMap::iterator k = button_release_bindings.begin(); k != button_release_bindings.end(); ++k) { XMLNode* child; child = new XMLNode (X_("Binding")); - child->add_property (X_("button"), k->first.name()); - child->add_property (X_("action"), k->second.action_name); + child->set_property (X_("button"), k->first.name()); + child->set_property (X_("action"), k->second.action_name); releases->add_child_nocopy (*child); } -- 2.30.2