Re: [gtkmm] window destroy event
- From: Erwan Ancel <eancel amadeus net>
- To: "Murray Cumming <murrayc" <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] window destroy event
- Date: Fri, 28 May 2004 14:56:03 +0200
ok. It works. But I guess there was a bug in previous version of gtk/gtkmm:
My code worked , and I was returning false.
Anyway, thanks.
Erwan
From: Murray Cumming <murrayc murrayc com> on 28/05/2004 13:38 ZE2
To: Erwan Ancel <eancel amadeus net>
cc: gtkmm-list gnome org
Subjec Re: [gtkmm] window destroy event
t:
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]