Re: [gtk-list] Trapping keys in an entry widget
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Trapping keys in an entry widget
- Date: Mon, 4 Jan 1999 09:01:49 -0600
> I'm trapping certain keys in an entry widget with a key_event callback
> but I can't find a way to throw away the trapped key so that it isn't
> sent to the entry widget after my callback is through.
You have to stop the emission of the signal.
gtk_signal_emit_stop_by_name (my_widget, "key_press_event");
You can look at the file selection widget to see how it blocks the Tab
key on the entry widget to do filename completion.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]