That should about do it. Let's take a look at an example to help clarify.
use Glib qw/TRUE FALSE/; use Gtk2 '-init'; Gtk2->main; 0;
You may also set a menu item to be insensitive and, using an accelerator table, bind keys to menu functions.