From 5bc6c04917157bf452ec82298205bb15c3c18b7c Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Sun, 11 Aug 2019 04:28:05 +0200 Subject: [PATCH] Fix a build error on older giomm --- gui/key_bindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/key_bindings.cpp b/gui/key_bindings.cpp index bf424be..1cb7cce 100644 --- a/gui/key_bindings.cpp +++ b/gui/key_bindings.cpp @@ -270,7 +270,7 @@ void KeyBindings::set_action_enabled(KeyBind p_bind, bool p_enabled) { void KeyBindings::set_action_checked(KeyBind p_bind, bool p_checked) { - actions[p_bind]->set_state(Glib::Variant::create(p_checked)); + actions[p_bind]->change_state(Glib::Variant::create(p_checked)); } void KeyBindings::set_action_state(KeyBind p_bind, const String &p_state) { @@ -281,7 +281,7 @@ void KeyBindings::set_action_state(KeyBind p_bind, const String &p_state) { idx = p_bind; } - actions[idx]->set_state(Glib::Variant::create(p_state.ascii().get_data())); + actions[idx]->change_state(Glib::Variant::create(p_state.ascii().get_data())); } Glib::RefPtr KeyBindings::get_keybind_action(KeyBind p_bind) {