SYNOPSIS

my $action = Gtk2::RecentAction->new (name => name,
                                      label => label,
                                      tooltip => tooltip,
                                      stock-id => stock_id,
                                      recent-manager => manager);

Note that the constructor slightly deviates from the convenience constructor in the C API. Instead of passing in a list of values for name, label, tooltip, stock-id and value, you just use key => value pairs like with Glib::Object::new.