Re: signal within a signal handler
- From: Murray Cumming <murrayc murrayc com>
- To: jonathon jongsma gmail com
- Cc: gtkmm <gtkmm-list gnome org>
- Subject: Re: signal within a signal handler
- Date: Thu, 08 Sep 2005 12:47:18 +0200
On Tue, 2005-09-06 at 08:26 -0500, Jonathon Jongsma wrote:
> I'm curious, is it legal to emit a signal within a handler for another
> signal?
Yes, absolutely.
> The reason I'm asking is that I'm trying to do such a thing
> and I keep getting a segfault when the event occurs.
gdb or valgrind will give more information.
>
> for example, I have a custom widget that has defined an
> on_button_press_event function to handle button_press_event signals.
> Inside that handler, I want to emit another signal called
> signal_selected. When I emit the signal with no handlers connected to
> it, it seems to work fine. When I connect any handler functions to
> the signal_selected signal, I get a segfault, even if the handler
> function does nothing more than return true.
>
> This is the first time I've tried creating and emitting my own
> signals, and I"m getting rather frustrated. Anybody have any tips?
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]