"Brian Wagener" <[EMAIL PROTECTED]> 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

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to