Re: Problem stopping signal.
- From: Havoc Pennington <hp redhat com>
- To: "Brian Wagener" <panic force ath cx>
- Cc: gtk-list gnome org
- Subject: Re: Problem stopping signal.
- Date: 04 Jan 2001 22:41:27 -0500
"Brian Wagener" <panic force ath cx> writes:
> In my app I have a text box, a GtkEntry, and when certain keys are
> pressed, I don't want anything to be added to the text box such as the
> keypad enter. So I connected the signal key_press_event for the main
> widget, so I capture all the key-presses, which I handle the input
> unless the GtkEntry is in focus which it then handles the input itself.
> My problem is when I get one of these keys I don't want to print out,
> and the GtkEntry has the focus I can't get it to not put the char into
> the Entry after the callback. I tried
> gtk_signal_emit_stop_by_name(text_box,"insert_text") but it says that
> there are no current emissions (84) for GtkEntry. What am I doing
> wrong?
You're trying to stop emission of "insert_text" but "insert_text" is
not being emitted. You can only stop emission from inside a callback
connected to the "insert_text" signal, basically.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]