You also need to add an action to action_entries (probably in terminal-window.c) with the same name as the action name in the .ui file. Nick