Re: blocking code after main loop



On 10/9/06, Michael Hartmann <michael hartmann as-netz de> wrote:

> Hide the window before quitting the gtk main loop:
>
> $button->signal_connect(clicked => sub { $window->hide; Gtk2->main_quit; }
> );
>
>
> jens

No, the gui only hangs when you use the "Close me" button.


yes, add that $window->hide; statement to thebutton clicked callback.
works for me.

jens

--
Jens Luedicke
web: http://perldude.de/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]