Re: How to simulate window close button (what I'm really trying to do...)

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]