Skip to content

Commit

Permalink
Merge pull request #8 from jpcima/work
Browse files Browse the repository at this point in the history
Fix a build error on older giomm
  • Loading branch information
reduz committed Aug 16, 2019
2 parents 16838b3 + 5bc6c04 commit c6e3cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/key_bindings.cpp
Original file line number Diff line number Diff line change
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 c6e3cd4

Please sign in to comment.