Re: How to access Window Manager protocol
- From: Laurent Besson <laurent besson st com>
- To: swilhelm theriver com
- Cc: gtk-perl-list gnome org
- Subject: Re: How to access Window Manager protocol
- Date: Wed, 20 Jun 2001 08:50:59 +0200
Than you for your answer, Stephen. It helped me open my eyes.
In fact, I was using the 'destroy' event and not the 'delete event'
(which is the one
used by the window manager to kill the window).
So, defining a callback for 'delete_event' was enough to do the trick.
"swilhelm/OU=internet/DD.RFC-822=swilhelm"@theriver com eux220 sgp st com
On Tue, 19 Jun 2001, Laurent Besson wrote:
I'm quite new to Gtk-Perl and I was wondering how to get a window which
can't be closed by the window manager.
Look at the bottom paragraph of:
which briefly explains that if you attach a callback function to
"delete_event", and if that function returns a true value, the window
won't be closed.
However, programs like xkill send the "destroy" signal, which can be
intercepted if you want to do some cleanup, but you cannot prevent a
window from being destroyed.
Also take a look at the button example program available at:
Hope this helps.
See my Gtk-Perl Tutorial:
] [Thread Prev