Re: Opening and closing a toplevel

From: Date: Fri, 22 Nov 2002 02:52:35 +0000
Subject: Re: Opening and closing a toplevel
References: 1 2 3 4 5 6  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2699@lists.php.net to get a copy of this message
Hey, that works fine, simply returning true and my window comes back whenever I want it to. I didn't find the manual since now. Thank you. And sorry, I'm a motivied newbie. Volker On Fri, Nov 22, 2002 at 01:32:50AM +0100, erbel@submedia.de wrote:
Yes, I think so: $w2->connect('delete_event','killwin2');
You didn't show me exactly what killwin2 does. What does it return?
The killwin2-Function just should do $w2->hide(); to hide the window. How can we stop users from exiting the application by clicking the X oder double-clicking on the left edge?
By returning true from the 'delete_event' function. Or, try using a popup window instead of a toplevel window. The manual for GtkWindow says: (my old cached copy)

« previous php.gtk.general (#2699) next »