Re: [gtkmm] window destroy event
- From: Murray Cumming <murrayc murrayc com>
- To: Erwan Ancel <eancel amadeus net>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] window destroy event
- Date: Fri, 28 May 2004 13:38:45 +0200
On Fri, 2004-05-28 at 10:43 +0200, Erwan Ancel wrote:
> I have troubles while handling the destroy event of a window: I would like
> to avoid destroying the window in some cases.
> I connect a method to the event: this works fine:
> myWindow.signal_delete_event().connect(SigC::slot(*this,
> &MyWindow::closeCrossClicked));
>
> But In this method MyWindow::closeCrossClicked, how can I cancel the window
> destruction ?
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apbs06.html
You will probably find it easiest just to override on_delete_event() and
return true. Almost every application does this, so there are lots of
examples.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]