Use signal/slot when creating a source via popup

I realized that there's no other way to share the menu if I want to add
it as a sub-menu somewhere else.