Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a build error on older giomm
  • Loading branch information
jpcima committed Aug 11, 2019
1 parent 16838b3 commit 5bc6c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/key_bindings.cpp
Expand Up @@ -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<bool>::create(p_checked));
actions[p_bind]->change_state(Glib::Variant<bool>::create(p_checked));
}
void KeyBindings::set_action_state(KeyBind p_bind, const String &p_state) {

Expand All @@ -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<Glib::ustring>::create(p_state.ascii().get_data()));
actions[idx]->change_state(Glib::Variant<Glib::ustring>::create(p_state.ascii().get_data()));
}

Glib::RefPtr<Gio::SimpleAction> KeyBindings::get_keybind_action(KeyBind p_bind) {
Expand Down

0 comments on commit 5bc6c04

Please sign in to comment.