It should work if you drop the “win.” from the action names in the add_action
calls:
add_action(GActionMap(ag), "first", first_handler)
add_action(GActionMap(ag), "second", second_handler)
When you insert the action group with the name “win”, the actions within that group have the “win.” prefix added.