Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl Gtk2 - ->destroy() is Not Causing the Script to Exit

by sam_bakki (Pilgrim)
on May 08, 2014 at 10:22 UTC ( #1085437=note: print w/ replies, xml ) Need Help??


in reply to Perl Gtk2 - ->destroy() is Not Causing the Script to Exit

Hi mmartin

The below code also would fix your problem.

$window->signal_connect(destroy => sub {Gtk2->main_quit() if (Gtk2->ma +in_level()); exit 0;}); #<---ERROR

Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.


Comment on Re: Perl Gtk2 - ->destroy() is Not Causing the Script to Exit
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-09-22 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls