Help for this page

Select Code to Download


  1. or download this
    {
        .signal_connect( :delete{ Gtk2.main_quit } );
    ...
        .add( .signal_connect( :clicked{ Gtk2.main_quit } ) on Gtk2::Butto
    +n.new( "Quit" ) );
        .show_all;
    } on Gtk2::Window.new( "toplevel" );
    
  2. or download this
    my $window = map {
        $_->signal_connect( delete_event => sub { Gtk2->main_quit } );
    ...
        $_->show_all();
        $_;
    } Gtk2::Window->new( "toplevel" );