Re: widget jumping
- From: Havoc Pennington <hp redhat com>
- To: "frederik jensen" <frederik_jensen get2net dk>
- Cc: <gtk-list gnome org>
- Subject: Re: widget jumping
- Date: 28 Jan 2001 21:12:10 -0500
"frederik jensen" <frederik_jensen get2net dk> writes:
> 1. when key "1" is pressed inside a text widget, key_press_event() is called,
> and returns TRUE. However, should this not stop event propagation and mask out
> the
>
> "1" from the visible text?
>
>
No, TRUE return from a signal emission keeps the key_press_event
signal from being emitted on _parent_ widgets. It does not stop the
signal emission on the current widget. To do that, use
gtk_signal_emit_stop_by_name().
>
> 2. Is there a function, gtk_JUMP(TargetWidget), which enables a jump from the
> text widget to an entry widget, so that we now are placed with a cursor inside
> a text entry widget?
>
gtk_widget_grab_focus().
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]