Well without writing it for you, my guess is that you can't add a Gtk2::Progressbar to a Menu. You will need to pop a new toplevel window for it, but I may be wrong. You might want to make a small example without all the icon changing, and other sftp stuff, and post it to the gtk2-perl maillist.