diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-28 23:30:33 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:54 +1000 |
commit | ac89bfd229b952e487722ed10d40965933f7cd38 (patch) | |
tree | 1cc36775052c2357070a5eeae24fb40a172dad00 /libs/gtkmm2ext | |
parent | 7170dd84d8a98316548c14a6a581425e11c8dd55 (diff) |
Use XMLNode::set_property API in Gtkmm2ext::Bindings class
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/bindings.cc | 16 |
1 files 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); } |