Re: How to simulate window close button (what I'm really trying to do...)
- From: Murray Cumming <murrayc murrayc com>
- To: paul linuxaudiosystems com
- Cc: GTK-- Mailing List <gtkmm-list gnome org>, Toralf Lund <toralf procaptura com>
- Subject: Re: How to simulate window close button (what I'm really trying to do...)
- Date: Mon, 17 Dec 2007 17:02:18 +0100
On Mon, 2007-12-17 at 10:46 -0500, Paul Davis wrote:
> On Mon, 2007-12-17 at 16:38 +0100, Murray Cumming wrote:
> > On Mon, 2007-12-17 at 10:09 -0500, Paul Davis wrote:
> > >
> > > that can be tricky to do directly from a signal handler because it can
> > > involve deleting the object for which the signal is being emitted. GTK
> > > (and gtkmm and sigc++) don't respond too well to this kind of thing.
> >
> > They should. GLib and libsigc++ have cleverness to deal with this.
> > Please file bugs when this doesn't seem to work.
>
> i didn't ever see it as a bug. a signal handler deleting the emitter
> struck me as an abuse of the API. you see it differently?
There's always some corner case that makes these odd things necessary,
so we generally try to handle things. But yes, I'd generally avoid it to
make my code simpler.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]