Re: gtk_signal_emit_stop seems to get confused
- From: Havoc Pennington <hp redhat com>
- To: mailingLists pangolin org uk
- Cc: gtk list <gtk-app-devel-list gnome org>
- Subject: Re: gtk_signal_emit_stop seems to get confused
- Date: 08 Jun 2001 21:46:41 -0400
rob <mailingLists pangolin org uk> writes:
I don't seem to be able to stop the insert-text signal if I also block my
signal handler.
What I'm trying to achieve here is that the user enters say an &, we
intersept it, stop the signal, stop our signal handler from being emited a
second time, re-insert the escaped text ( & ) this time allowing
handlers further up to deal with escaped text, and then re-enable our
handler.
But the first signal isn't being stoped resulting in duplicate text ( ie
rather than & we get && ).
If I comment out everything after the gtk_signal_emit_stop the signal gets
stoped and no text is ever displayed.
It might be a GTK bug, I'm not sure. You might try moving the
emit_stop after the block though, if it's a bug it seems like that
would make a difference.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]